Control State Equations
Use the State Equations tool to create and set control state equation data.
Create Control State Equations
A control state equation is an entity that can be used to model any generic dynamic system in an abstract manner.
- From the Model Browser, select the system to which the control state equation is to be added.
-
Right-click on a system in the Model Browser and select from the context menu.
ORRight-click on a control state equations folder in the Model Browser and select Add ControlStateEquation from the context menu.ORFrom the Model ribbon, click the arrow next to the Controls tool set name, then select State Equations icon.The Add ControlStateEquation dialog is displayed.
-
Specify a label for the control state equation.
The label can be changed at any time.
-
Specify a variable name for the control state equation.
By default, variables names of entities in MotionView follow a certain convention. For example, all control state equation entities have a variable name starting with “cse_”. 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 control state equation entity has been added to the model, the panel for the equation will automatically be displayed in the panel area.
Edit Control State Equations
A user subroutine is used to describe the behavior of the dynamic system. The dynamic system is characterized by a vector of inputs u, a vector of dynamic states x, and a vector of outputs y. The state vector x is defined through a set of differential equations. The output vector y is defined by a set of algebraic equations.
Define the Properties of Control State Equations
From the Properties tab, you can provide inputs needed for the control state equation.
-
If the Control State Equation panel is not currently displayed, select the
desired control state equation by clicking on it in the Model Browser or in the modeling window.
The Control State Equation panel is automatically displayed.
-
Double-click the SolverArray collector under Input Array
and select an array for the control state equation from the Model Tree.
The solver array should be of the type U.
- Specify the number of outputs being returned by the control state equation by entering a value in the No of Outputs text box.
- Select Static Hold if the state of the control state equation is not permitted to change during static and quasi-static analysis of the solver. Otherwise, deselect the option.
-
Define an initial conditions array for the states.
Note: Linear control state equations are not currently supported by MotionView.
Define the User-Functions of Control State Equations
The User-Function tab is used to provide user subroutine related information for the control state equation.
- Click the User-Function tab.
-
Define the user subroutine.
-
Click the XXFunction box and specify the function name
in the subroutine that is used to compute the partial derivatives of the
states.
The default function name is GSEXX.
-
Click the XUFunction box and specify the function name
in the subroutine that is used to compute the partial derivatives of the states
with respect to the inputs.
The default function name is GSEXU.
-
Click the YXFunction box and specify the function name
in the subroutine that is used to compute the partial derivatives of output with
respect to the states.
The default function name is GSEXYX.
-
Click the YUFunction box and specify the function name
in the subroutine that is used to compute the partial derivatives of output with
respect to the inputs.
The default function name is GSEYU.