Specifications

74
where the classes with blue icons are the ones you can actually define. In this tutorial we shall focus on
AnyBodyStudy and AnyBodyCalibrationStudy, while a seperate tutorial
is dedicated to AnyParamStudy and
AnyOptStudy.
The AnyBodyStudy and Studies in general
A study is really just a folder. It is a pair of braces between which you can place some specifications.
Whatever you put between the braces becomes part of the study. As every object, a study has some
predefined properties that you either can set, must set, or cannot touch.
When you create a new model by means of the menus File -> New Main, the system automatically inserts
an AnyBodyStudy for you (please do it and save the file under some relevant name). It looks like this:
// The study: Operations to be performed on the model
AnyBodyStudy MyStudy = {
AnyFolder &Model = .MyModel;
RecruitmentSolver = MinMaxSimplex;
Gravity = {0.0, -9.81, 0.0};
};
It contains all the things you formally need. Let's start with the two last lines. They read
RecruitmentSolver = MinMaxSimplex;
Gravity = {0.0, -9.81, 0.0};
As you can see, they are simply assignments of values to variables. The two variables shown here have no
type definitions in front of them. This is because they are predefined properties of the AnyBodyStudy object.
The value of RecruitmentSolver tells the system which solution algorithm to use for muscle recruitment, and
Gravity is a specification of the vector of gravitational acceleration affecting the model. The system assumes
that you want to work with the y axis being vertical in space. If you prefer otherwise, simply change the
direction of Gravity to reflect your choice. Please go ahead and load the model if you have not already done
it by pressing F7 or the
icon.
An AnyBodyStudy has many more predefined properties that you can play with. You can get an overview of
these using the Model Browser. The Model Browser is opened from the menu Windows -> Model Browser,
whereafter you can find the study in the Model Tree. Alternatively, you can, as with all objects in the model,
dump the contents of a study in the message window. This is done simply by finding the study in any Model
Tree view, right-clicking it and selecting Dump. This produces a whole lot of output in the Output Window.
Most of the properties deal with solution methods, tolerances, and other stuff that is necessary or handy for
advanced users. For a description of each property, please refer to the AnyScript Reference manual. A few of
the properties, however, are necessary to know even for casual users:
tStart
This is the time at which the study begins. In almost every case, this would be zero. Using a non-
zero value of tStart is sometimes used to restrict the study to a subset of the time is was
originally developed for or if the model is driven by measured data which does not begin at t = 0.