ASSIGN

Assigns a value to a variable.

Type

AcuSolve Command

Syntax

ASSIGN {parameters}

Qualifier

This command has no qualifier.

Parameters

variable or var (string) [no default]
Variable name.
value (real) [=0]
Value assigned to the variable.

Description

This functional command assigns a value to a variable to be used in expressions defining integer, real or array parameters. Details can be found at Parameter Operators and Functions.

For example,
ASSIGN {
 variable        = MPH
 value           = 1609.344 / 3600 # mile/hr --> m/sec
}
NODAL_BOUNDARY_CONDITION( "inflow x-velocity" ) {
 variable        = x_velocity
 type            = constant
 constant_value  = 60 * MPH
 ...
}

The variable names are case insensitive; therefore, the double quotes that are used for string parameters may be omitted, as in the above example.