VARIABLE
Expressions are used to define a quantity in terms of variables that are defined using the VARIABLE command or in terms of built in math functions (sin, cos, tan, and so on). The order in which commands appear is not important. Variable x could be a function of variable y, even though it appears afterward in the input file.
Syntax
VARIABLE {parameters}
Qualifier
This command has no qualifier.
Parameters
- variable_name (string)
- Given name of the variable
- expression (string)
- Number or mathematical expression that defines this variable
Example
VARIABLE{
variable_name = meanVel
expression = 0.2265
}
VARIABLE{
variable_name = nSeeds
expression = 15
}
VARIABLE{
variable_name = Vehicle_xMin
expression = -0.90743399
}
VARIABLE{
variable_name = xStart
expression = Vehicle_xMin
}
VARIABLE{
variable_name = xSpacing
expression = 0.2
}
VARIABLE{
variable_name = xEnd
expression = Vehicle_xMax+xSpacing
}
Commands/Attributes Supported
Expressions will be evaluated as numerical values when they are used for the
attributes in these commands:
- Set up commands:
- DATASET
- DISPLAY
- VIEWANGLES
- VIEW
- In object commands:
- PART
- GEOMETRY
- CUT_PLANE
- ISO_SURFACE
- STREAMLINE
Such attributes include:
- real type:
- cut_location
- density
- iso_value
- legend_max
- legend_min
- mean_velocity
- transparency
- threshold_min
- threshold_max
- viscosity
- x_1
- x_2
- x_center
- x_length
- x_min
- x_max
- y_1
- y_2
- y_center
- y_length
- y_min
- y_max
- z_1
- z_2
- z_center
- z_length
- z_min
- z_max
- integer type:
- num_contours
- num_labels
- num_seeds
- x_seeds
- y_seeds
- z_seeds
- Additionally, in IMAGE command, the following attributes will also trigger
the evaluation of the expressions:
- sweep_range
- zoom_factors