value of a scalar variable
For the given "ScalarVariable", the RightHandSide or CONSTRUCT statement is evaluated and returns the current value, IF it is a number. Otherwise, return 0.
For the given "VectorVariable", the component specified via iArg is returned. Note that, if a floating point variable is supplied as iArg, it is converted to the nearest integer value.
Other than the ConstructClause within a begin_construct{ environment, the value can be updated in every timestep as the corresponding statements are evaluated whenever valA() is called, e.g. within an INTEGRATION statement.
Attention: The RightHandSideExpression can only contain expressions that yield a scalar result. Evaluations on the pointcloud are not possible, as they would not be meaningful.
Attention: Currently, it is necessary to initialize variables which are re-evaluated in each timestep by a construct statement (see example above). This initialization should be a number and not an arbitrary character string!
Attention: Handle with care, as for each evaluation of this function, the MESHFREE text parser is employed. It searches in the list of aliases, and recursively interprets the alias on text-basis, then the tesxt-result is transformed into a numerical value. The performance is expectedly low. Hence, pointwise evaluation might be costly.