Allowed values for the logical variables are TRUE,
FALSE and UNSET. The value is determined by
the comparison of two numerical variables (DEF_TYPE = BASE)
or by combining several logical variables (DEF_TYPE = BOOLEAN).
The permitted operators for two numerical variables are: GE
(= greater or equal than), LE, GT, LT and EQ.
The comparison of the two numerical variables, Var1 > Var2,
sets the status TRUE, FALSE or UNSET
depending on whether Var1 > Var2, Var1 < Var2
or one of the variables is not defined. The status can also
be determined with an AND or OR condition
using 1 to 4 logical variables. In this way, simple as well as
complex logical variables can be constructed.
Examples
|
(Var1 Δ Var2) |
Var1 |
Var2 |
Δ = AND |
Δ = OR |
True |
True |
True |
True |
True |
False |
False |
True |
False |
False |
False |
False |
True |
Unset |
Unset |
True |
False |
Unset |
Unset |
False |
Unset |
Unset |
Unset |
Unset |
In the above table, the result of combination of two logical variables
Var1 and Var2 using AND or
OR operation is listed for all possible values of Var1
and Var2.
The logical variables are used in SIMULIA Tosca Structure,
for example, for the definition of the stop conditions. It is also
possible to control the dynamic model modification (in OPT_PARAM)
with logical variables.
Logical variables are defined with the LOGICAL command.
If one of the logical variables is UNSET, the second
variable in AND operation is ignored, see the above
figure.