# AnyFunInterpol

Hi,

I have been looking into the way that the SwayPractice (in the files)
drives the model, and I was trying myself to mimic it, however I have
a couple of questions:

First off, what is the function “AnyFunInterpol,” as defined within
the forceConstraints.any file in SwayPractice? I have looked it up
and it appears not to exist - at least not in the documentation for
version 1.3.0. Is this from 2.0? I thought that the example came out
prior to the release of 2.0?

And secondly, in that same file, the following appears four times
(AnyMoment3D and AnyForce3D on both the right and left sides):

AnyForce3D ForceOnLeft = {
AnyFunInterpol force = {
Type = Bspline;
T = {#include “time.any”};
Data = {#include “forcexyz.any”}’;
};
AnySeg &ref1 = .LeftDummy;
F = force(t);
};

With the same repeated for the moment (except force changed to moment
for appropriate places, etc).

At the end of the Data line, after the brackets, there is a tick mark
(’) - what does that represent? How can I get what works in
SwayPractice to work in my model?

Thank you in advance for your time,
Sarah

Hi Sarah

The AnyFunInterpol in the ForceConstraints.any file is an
interpolation function which specifies the variation of the force
using an bspline or similar. This facility is not present in version
1.3.1, in this version a work around needs to be used, but it is
possible to obtain the same functionality.

You may read more about the interpolation function in the manual
which is online at

The symbol ’ works as a transpose for the matrices and vectors,
this is tha same syntax as in MatLab

If you want the interpolation function to work in version 1.3.1 you
will need to make the follwoing work around

1 create a dummy segment
2 create a prismatic joint between the segment and the globalref
3 driver this joint using an interpolation driver, use the force you
want to apply as the motion !
4 create the force and set the force equal the Pos of the prismatic
joint.

Best regards
AnyBody Support

— In anyscript@yahoogroups.com, “Sarah R. Sullivan”
<sarsulli@e…> wrote:
>
> Hi,
>
> I have been looking into the way that the SwayPractice (in the
files)
> drives the model, and I was trying myself to mimic it, however I
have
> a couple of questions:
>
> First off, what is the function “AnyFunInterpol,” as defined within
> the forceConstraints.any file in SwayPractice? I have looked it up
> and it appears not to exist - at least not in the documentation for
> version 1.3.0. Is this from 2.0? I thought that the example came
out
> prior to the release of 2.0?
>
> And secondly, in that same file, the following appears four times
> (AnyMoment3D and AnyForce3D on both the right and left sides):
>
> AnyForce3D ForceOnLeft = {
> AnyFunInterpol force = {
> Type = Bspline;
> T = {#include “time.any”};
> Data = {#include “forcexyz.any”}’;
> };
> AnySeg &ref1 = .LeftDummy;
> F = force(t);
> };
>
> With the same repeated for the moment (except force changed to
moment
> for appropriate places, etc).
>
> At the end of the Data line, after the brackets, there is a tick
mark
> (’) - what does that represent? How can I get what works in
> SwayPractice to work in my model?
>
> Thank you in advance for your time,
> Sarah
>