The INITIAL VALUES Section

Top  Previous  Next

The INITIAL VALUES section is used to initialize the dependent variables.

 

When not specifically initialized, the dependent variables are initialized to zero.

 

For steady state problems the INITIAL VALUES section is optional.

 

For time dependent problems, the INITIAL VALUES section should include a value assignment statement for each dependent variable.

 

Initial value statements are formed by following the dependent variable name with the assignment operator '=' and either a constant, function, expression or previously defined definition.

 

Example:

INITIAL VALUES

U = 1.0-x

 

 

Setting Initial Values from an imported table:

 

Initial values can be set directly by an imported TABLE:

INITIAL VALUES

U = TABLE("initial_U.tbl")

 

For syntactic reasons, initial values cannot be set directly from TRANSFERs (q.v.). 

An intermediate name must be defined by the transfer command, and then assigned to the initial value:

DEFINITIONS

TRANSFER("initial_U.xfr",U0)

INITIAL VALUES

U = U0