Adams Basic Package > Adams View > Adams View > Dialog box - F1 help > A - D > Create/Modify State Variable

Create/Modify State Variable

Ribbon menu Elements tab System Elements container Create/Modify State Variable
or
(Classic) Build System Elements State Variable New/Modify
Creates or modifies a state variable.
Learn about:
 
For the option:
Do the following:
Name
Enter the name that you want assigned to the state variable.
Definition
Set to either:
Run-time Expression
User written subroutine
F(time...,) =
If you selected Run-time Expression, enter the function expression that defines the variable. Select the More button to display the Function Builder and build an expression. See the Adams View Function Builder online help.
If you selected User written subroutine, enter constants to the user-written subroutine VARSUB to define a variable. See the Subroutines section of the Adams Solver online help.
Routine
Specify an alternative library and name for the user subroutine VARSUB. Learn about specifying routines with ROUTINE Argument.
Guess for F(1, 0..) and
Select and then specify an approximate initial value for the variable, if desired. Adams Solver may adjust the value when it performs an Initial conditions simulation. Entering an accurate value for initial conditions can help Adams Solver converge to the initial conditions solution.