Command manual

Command list

PARAMETER

Parameters and functions
*PARAMETER
%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

The purpose of this command is to define parameters, that can be used inside expressions anywhere in the command file. Brackets are used to mark the beginning and end of an expression. Parameters should always be preceeded by the prefix %.

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

Density

Definition of density parameters.

*PARAMETER
%scale_factor = 2.0
%rho_steel = 7800.0
%rho_aluminum = 2700.0
*MAT_RIGID
1, [%scale_factor*%rho_steel]
*MAT_RIGID
2, [%rho_aluminum]