Hi Soren,I’m unable to run the ParameterStudyWithSelcetedValues.any file you had
posted a couple of days ago. I get an error saying “unexpected [”. Your
suggestion of removing all the unwanted muscles worked for greatly speeding up
the kinematic analysis. Additionally, I was contributing to the typos… it
seems that I was scaling the wrapping surfaces by 500% instead of 5% so I got a
lot of penetration errors, no wonder! Fixing that also helped to reduce the
time it takes to 20s instead of 60 ms.Thanks a million for that excellent
suggestion!I think I’ll be able to decrease the ~20s to ~15s if I don’t have to
load the model every time when running the model using Anybody Console from
MATLAB. I know this is what parameter study does. But, as of now, I’m not able
to save the results of each run of the parameter study into a separate file. It
would greatly help my cause, if there is some way I could run a parameter study,
while saving the output of each run to a separate file. For example, here is a
pseudocode of what I mean AnyBodyStudy MyStudy = { … AnyVar TrialNum =
0; KinematicAnalysis = { … OutFile =
stringConcatenate(“musLen”, number2String(…MyStudy.TrialNum), “.csv”); }
AnyParamStudy Parstudy = { Analysis = { AnyOperation &opr =
…MyStudy.KinematicAnalysis; }; AnyDesMeasure val = { Val =
0; }; AnyDesVar selectedvalues= { Val = …MyStudy.TrialNum;
Min = 0; Max = 3; }; nStep = {4}; }; If there is a workaround for
this, I’ll appreciate it.Thank you very much,Sincerely,-VennTo:
anyscript@yahoogroups.comFrom: support@anybodytech.comDate: Tue, 20 Feb 2007
09:17:46 +0000Subject: [anyscript] Re: Parameter Study
Hi Venn
I have taken a look at your file, you are right what you are trying
to do there is not possible. The reason is that you are trying to
assign Radius using both a design variable and an expression which is
not independent, this can not be done, the system would not known
which of them to use. A possible hack could be if you use the normal
espression for Radius and then in that expresion add the value of
your design variable. Then you would have the normal radius and the
parameter study could do changes to this value
it would look something like this:
dR=0; //from your paramter study make a lnk to this varaible
Radius = sqrt((.node1.sRel[0]-…P1[0])^2 + (.node1.sRel[1]-…P1[1])
^2 + (.node1.sRel[2]-…P1[2])^2)+ dR;
In this way you can change the radius using your design variable and
if it is zero you have not made any change.
About question 1a i have made a small example which should illustrate
this, it has been uploaded as “ParamterStudyWithSelectedValues.any”
About question 1b this what AnyBody will do by default, if you
specify a nStep={10} and your design variable has a min =0 and max= 1
it will distribute the 10 steps uniformly between 0 and 1.
Best regards
Søren
— In anyscript@yahoogroups.com, Vengateswaran Ravichandran
<vennjr@…> wrote:
>
> Thanks
> Søren,I have done the same thing as you suggested (in
SufParamStudy.any). However, this means that I’ve to modify some of
the files in the repository, which I was hoping to avoid. I’ve
posted a file (SurfParamStudy-Venn.any) that shows an example of what
I’m trying to do to the group that better illustrates my
predicament.For question 1a, can you give me an example. I’m not sure
how I’ll be able to use t and Data with design variables.For question
1b, what I meant was this. Instead of me giving the exact data set, I
could specify a range [0,10] and ask for say 20 samples. It would be
nice if Anybody can pull out these 20 samples from an internally
generated uniform distribution.Thanks again for the speedy
response,To: anyscript@…: support@…: Mon, 19 Feb 2007 10:57:55
+0000Subject: [anyscript] Re: Parameter Study
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi Venn
>
> Thanks for the your suggestions and kind words.
>
> It is possible to use the dimensions of a paramsurf as design
> variable, i have made very simple example illustrating this i will
> upload to the file section as “SurfParamStudy.any”, shortly. It
> has one design variable which change the radius of a cylinder on
> which a line is wrapping. There is one thing however, the surface
do
> not visually change size in the modelview, but if you look at the
> muscle you can see, it change its size.
>
> About your question 1a:
> It is possible to do a parameter study where the grid is unevenly
> distributed. This can be done by using a piecewise linear
> interpoaltion function and use this as a “translation table”. So
you
> let your design variable go from for example 0 to 10 and use
> nstep=10, then you create the interpolation function with t=
> {0,1,2…9} and Data={Selected values…!}.
>
> Question 1b, i am not sure i understand what you mean by uniform
> distribution in this relation.
>
> Question 2: we will consider this for the next release.
>
> Qestion 3: This is not possible today because the FileName property
> of the Outputfile is a constant, which can not be changed after
> loadtime, we will also consider to open up for this is the next
> releases.
>
> Again, thanks for your suggestions!
>
> Best regards
> Søren
>
> — In anyscript@yahoogroups.com, “Vengateswaran J. Ravichandran”
> <vennjr@> wrote:
> >
> > Hello,
> >
> > First of all, I’m glad you included Parameter Study in AnyBody
2.0.
> > Because it seems that I cannot change the parameters otherwise,
> without
> > creating a new model by writing a file with all the parameters.
> However,
> > it seems that I cannot vary parameters that are calculated rather
> than
> > assigned. For example, I’m not able to set the radius of wrapping
> > surfaces as a AnyDesVar.
> > I was trying to set
> >
>
ShoulderArm.Mus.Pectoralis_minor2_cyl.Cylinder.Cyl.node1.CylSurf.Radiu
> s,
> > among others. But I get an error. Is there an alternate way to do
> this?
> > I really appreciate your input.
> >
> >
> >
> > Here are a few of my thoughts on what more could be done to
improve
> > Parameter Study in the next version:
> > 1a. The rectangular grid function is not very helpful when
> simulating a
> > lot of parameters (204, in my case). Perhaps it would help to
> explain
> > what I’m doing. Clearly, I do not want to do an exhaustive
search,
> since
> > it will take eons to complete. Perhaps I could specify specific
> values
> > instead, say as a vector?
> > 1b. Even better would be when I AnyBody can pick a uniform
sampling
> of
> > the space specified. Naturally, this would be an option, rather
> than the
> > default. (I’m using MATLAB as a workaround to do just this).
> >
> > 2. In what I’m doing, there is also no design measure to maximize
or
> > minimize. So, as of now, I’ve created a dummy DesMeasure that is
> set to
> > zero, since it appears mandatory to have a DesMeasure. I don’t
> know if
> > DesMeasure needs to be mandatory. Not an important issue, but
> thought
> > I’d mention.
> >
> > 3. I think it would be helpful if there is a way to save the
> results of
> > ParamStudy into a different file after each run. Let me try to
> explain
> > with an example.
> > Let us say ParamStudy runs KinematicAnalysis that outputs a
> particular
> > variable to an OutFile. I don’t want to overwrite OutFile each
time,
> > instead it would be great if a new OutFile, say with a suffix
> indicating
> > the ParamStudy run number, can be created.
> >
> > My thanks to all the folks at the support group. My particular
> thanks to
> > Søren for all his help.
> > Your fast turn around time for queries still amazes me. Thank you
> for
> > your patience while I still try to putz around.
> >
> > -Venn
> >
> >
> >
> > [Non-text portions of this message have been removed]
> >
>
>
>
> __________________________________________________________
> Get the most out of tax shelters and other breaks.
>
http://articles.moneycentral.msn.com/Taxes/TaxShelters/TaxShelters.asp
x?icid=WLtextFebtagline
>
> [Non-text portions of this message have been removed]
>
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE
[Non-text portions of this message have been removed]