Card 9 - VARIABLE Variable Definition
This optional card specifies the parameters and options for defining symbolic variables.
Parameters: KODE
, N1
, T1
KODE
KODE
is the code VARIABLE
(or 29)
N1
N1
is a symbolic variable name. The variable name must start with a % sign and must not exceed 29 characters.
T1
T1
is the value of the symbolic variable.
Code example
VARIABLE %AREA .5
VARIABLE %HEATIN .7
VARIABLE %XVAR 3.7
XCOND 101 102 %XVAR COND
QNODE 5 (%HEATIN*%AREA) CONSTANT
$ HEAT LOAD TO ELEMENT 5 = .35
Notes
You can use symbolic variables anywhere in the data deck, except for Cards 1 and 2. Once a symbolic variable is encountered, it is replaced with its value.
If you use symbolic variables in NAME Cards and other variable Cards, its definition must occur before its usage. Otherwise, it may occur anywhere.
You can access symbolic variables by the Card 10 user-written subroutine.