Command manual

Command list

PARAMETER_DEFAULT

Parameters and functions
*PARAMETER_DEFAULT
%param = expression, "description", rid, quantity

Parameter definition

VariableDescription
%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
options: length, displacement, time, density, stress, pressure, energy, velocity, acceleration, temperature, force, viscosity, rate, rotation, spin, strain, moment

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 Afea Solver determine how to convert FUNCTION expressions 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