Adams Expression Support

Overview

Adams View Expressions are combinations of constants, operators, functions, and database object references, all enclosed in parentheses.  You can use expressions to specify parameter values, such as locations of markers or functions of motions.  Together with design variables, expressions can be a powerful and an efficient way to drive parametrized models and conduct design studies.  Adams Modeler now supports the use and editing of Adams View expressions all from within the Modeler interface. 

Adams Object Support details the specific objects that can support inputs and edits of Adams View expressions. 

Bi-Directional Workflow discusses details on bi-directional workflows between Adams View and Adams Modeler interfaces.  You can stay in the Modeler interface to work with parametrized models.  For the fields that accept parametrization in Joints, Motions, Forces, and Connectors, you can discover, define, and edit the field with the familiar Adams View expression syntax.

Discover

Of the fully supported objects that are parametrized, you will see the field highlighted, with an expression in the Adams View expression syntax.  For example, the stiffness field is parametrized referencing the design variable, “stiff” under “Model342”:

The expression on some fields that are not fully supported can still be seen.  For example, the Function field in Joint Motion does not have the highlight but you can still see the expression when parametrized:

Finally, right-click on the object from the Model Browser --> Information lets you confirm that the field is indeed parametrized:

 

Define

You can import an existing parametrized model, and you can discover the parametrization as shown in the previous section.  You can also right-click on the supported field, select Parametrize --> Reference Design Variable, then select the Design Variable from the Model Browser.  You will see the field highlighted with color to show that it is parametrized. 

You can also write directly into the field to key in the expression.

Edit

You can edit the expression by clicking directly into the field:

Clicking on the “x” on the right corner would unparametrized the field and leave with only the resolved constant value.