Parameter Study AnyDesVar

Dear AnyBody Support Team!

I have a question - again!

I tried out a 2D-parameter -study with a bicycle example (one leg only).
As I defined body-parameters according to statistic anthropometry I did
this in an extra include file (InitialConditions.any). There I defined
the Parameters that should be changed during the study too.

//Parameters for parameterStudy
AnyVar SaddlePos = -0.09;//neg --> behind crank
AnyVar SaddleHeight = 0.76;//pos: above crank
AnyVec3 HipPosition = {SaddlePos,SaddleHeight,0}; //Position of Hip
RefFrame

In the Main-File I referred to this AnyVec3

AnyFixedRefFrame HipRef =
{
Origin = Main.InitialConditions.HipPosition;

and in the parameter study:

 nStep = {5};
 AnyDesVar SaddleHeight =
 {
   Val = Main.InitialConditions.SaddleHeight;
   Min = Val-0.05;
   Max = Val+0.05;
 };

Anything worked fine. Except there where no changes to be seen in the
modelview during run-ParameterStudy. In the 2D chart when displaying the
AnyVar SaddleHeight there was a change but not in AnyDesMeasure-MaxActivity

But when I changed the reference in the Main to

//HipRefFrame – green - for grounding the leg via HipNode and attaching
MuscleNodes
AnyFixedRefFrame HipRef =
{
Origin = {Main.InitialConditions.SaddlePos,
Main.InitialConditions.SaddleHeight,0};

it suddenly worked.

So - finally - my question. Why that?

Curiously waiting for your reply.

regards
stefan

Dear Stefan,

I am not sure I can give you an exact answer without seeing the model, but
maybe I can point you towards the problem.

While operations in studies are executed not all values (expressions) are
updated. Only the expressions the particular study “knows of”, meaning only
the expressions that are actually inside the study.

I wonder if some of your expressions (maybe the one for
Main.InitialConditions.HipPosition) could be left outside the study that you
call in your parameter study.

Let me be a little more specific on the “inside-outside” issue. Most
typically, expressions are declared outside a study if you look at the
AnyScript code directly, but as soon as you make a reference to a folder
containing an expression inside a study then the expression is included in
the study’s list of expressions. Expressions that are not found by the
study, when it looks in its members and its sub-tree of folders and
referenced folders, are neglected (meaning not updated).

Please ask again if this does not make sense or you think something else is
in the matter. Probably we need to see the model; maybe you can strip it
down to a few files with only the important stuff.
I hope this brings you forward.

Best regards,

Michael

AnyBody Support
www.anybodytech.com

-----Original Message-----
> From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On
> Behalf Of Stefan Litzenberger
> Sent: Thursday, June 28, 2007 14:14
> To: anyscript@yahoogroups.com
> Subject: [AnyScript] Parameter Study AnyDesVar
>
> Dear AnyBody Support Team!
>
> I have a question - again!
>
> I tried out a 2D-parameter -study with a bicycle example (one leg only).
> As I defined body-parameters according to statistic anthropometry I did
> this in an extra include file (InitialConditions.any). There I defined
> the Parameters that should be changed during the study too.
> ------
> //Parameters for parameterStudy
> AnyVar SaddlePos = -0.09;//neg --> behind crank
> AnyVar SaddleHeight = 0.76;//pos: above crank
> AnyVec3 HipPosition = {SaddlePos,SaddleHeight,0}; //Position of Hip
> RefFrame
> -------
>
> In the Main-File I referred to this AnyVec3
> ---------
> AnyFixedRefFrame HipRef =
> {
> Origin = Main.InitialConditions.HipPosition;
> --------
> and in the parameter study:
> --------
> nStep = {5};
> AnyDesVar SaddleHeight =
> {
> Val = Main.InitialConditions.SaddleHeight;
> Min = Val-0.05;
> Max = Val+0.05;
> };
> --------
>
> Anything worked fine. Except there where no changes to be seen in the
> modelview during run-ParameterStudy. In the 2D chart when displaying the
> AnyVar SaddleHeight there was a change but not in AnyDesMeasure-
> MaxActivity
>
> But when I changed the reference in the Main to
> ---------
> //HipRefFrame – green - for grounding the leg via HipNode and attaching
> MuscleNodes
> AnyFixedRefFrame HipRef =
> {
> Origin = {Main.InitialConditions.SaddlePos,
> Main.InitialConditions.SaddleHeight,0};
> ----------
> it suddenly worked.
>
> So - finally - my question. Why that?
>
> Curiously waiting for your reply.
>
> regards
> stefan
>
>
> Users of the AnyBody Modeling System help each other create biomechanical
> models in the AnyScript language.
> Yahoo! Groups Links
>
>
>