PARAMETER_DEFAULT
Parameters and functions
*PARAMETER_DEFAULT
"Optional title"
%param = expression, "description", rid, quantity
"Optional title"
%param = expression, "description", rid, quantity
Parameter definition
Variable
Description
%param = expression
Parameter name and an expression defining its value
description
Optional parameter description
rid
Range ID for parameter manipulation in the GUI
quantity
Physical quantity
Description
This command is used to define default values to parameters inside a scope (see example below). The default value is overwritten by any prior defined value.
The range ID (rid) refers to either one of the commands PARAMETER_RANGE_CONTINUOUS, PARAMETER_RANGE_DISCRETE or PARAMETER_RANGE_BOOL.
Defining a physical quantity (quantity) is optional. It helps IMPETUS Solver determine how to convert parameters between different unit systems.
Example
Default parameter values
In the COMPONENT_BOX command %a=20 has its default value, while %b=100 has its previously defined value.
*PARAMETER
%b = 100
*PARAMETER_DEFAULT
%a = 20
%b = 40
#
# Here %a=20 and %b=100
*COMPONENT_BOX
1, 1, 10, 10, 10
0, 0, 0, [%a], [%b], 20