You might also want to access the value of a user input in your equations without adding it as a variable. The syntax for this is to add par. before the input parameter name. For example, to access the input parameter
sigma in an expression, type
par.sigma. The
par prefix is part of a name generation syntax that the builder interprets. This syntax is built up by a sequence of dot-separated items, where each position has a special meaning. The full syntax description can be defined by the following rule
All items within brackets mean that you do not have to specify them, and in some cases a default is used instead. An asterisk (*) means that you can write zero or several items. The par prefix in the mentioned above, is an example when the identifier position is a user input, and the value of that user input replaces the entire sequence. There are other similar reserved prefixes for accessing different scopes and specifying operators. You find the complete list in the following table:
If the prefix is left out, it is assumed to be phys for variable names, but not for dependent variables, operators, and functions (see below). After the identifier there can be a trailing sequence of integers. This sequence represents indices of a tensor element. Assume that there is a 3-by-3 tensor
A with physics interface scope, and that it is used in a 2D axisymmetric model where the coordinate names are
r,
phi, and
z. If you type