Solver Variables
Use the Variables tool to create solver variables that can be used to create an algebraic expression of state variables, as well as other solver variables. This can then be referenced in function expressions throughout the solver input file.
Create Solver Variables
- From the Model Browser, select the system to which the solver variable is to be added.
-
Right-click on a system in the Model Browser and select from the context menu.
ORRight-click on a solver differential equation folder in the Model Browser and select Add Solver Variable from the context menu.ORFrom the Model ribbon, click the Variables icon.The Add Solver Variable dialog is displayed.
-
Specify a label for the solver variable.
The label can be changed at any time.
-
Specify a variable name for the solver variable.
By default, variables names of entities in MotionView follow a certain convention. For example, all solver variable entities have a variable name starting with “sv_”. This is the recommended convention to follow when building models in MotionView since it has many advantages in model editing and model manipulation.
-
Click OK to close the window or
Apply to continue creating entities.
Once a solver variable entity has been added to the model, the panel for the variable will automatically be displayed in the panel area.
Edit Solver Variables
-
If the Solver Variables panel is not currently displayed, select the desired
solver variable by clicking on it in the Model Browser or in
the modeling window.
The Solver Variables panel is automatically displayed.
- Click the Initial Conditions check box and enter a value in the text box.
- Select Static Hold if the state of the solver differential equation is not permitted to change during static and quasi-static analysis of the solver. Otherwise, deselect the option.
- Click the Implicit check box to specify whether the differential equation is of type implicit or explicit.
-
If the Implicit check box is activated, select an AutoBalance type from the
drop-down menu.
If you select Penalty, enter values in the Penalty and Penalty1 text boxes.
- Select an option from the Type drop-down menu.
-
Define the properties associated with your choice.
If Linear is chosen, enter a value in the text box.If Curve is chosen:If Spline3D is chosen:If Expression is chosen, enter an expression.
Use User-Defined Properties for a Solver Variable
If desired, define the solver variable using the User-Defined tab, which will allow you to specify the properties of the variable using user subroutines.
- From the Properties tab, click the User-defined properties check box.
- Click the newly added User-Defined tab.
-
Define the user subroutine.