UserDefinedIndices
user defined indices
As a postprocessing feature, users can define own indices. At the startup phase,
MESHFREE scans the input file (
USER_common_variables) for occurrences of indices of the forms:
%indU_...%
%indC_...%
No matter, where it occurs or for what reason,
MESHFREE will create this index as additional index. It is then treated like a usual
MESHFREE index of the form %ind_...%.
Types of user defined indices
There are two types of indices and they differ in the way they are updated:
-
- %indU_...% are continuously evaluated indices; whenever a new point is created, its value for %indU_...% is interpolated from neighbor values.
- %indC_...% are discretely evaluated indices; whenever a new point is created or an inactive point is activated, its value for %indC_...% is inherited from the originating/closest point.
Assignment and usage
The user defined indices of the form %indU_...% can be used, especially, in the
CODI- and
EVENT-context. However, all other functionalities like
INITDATA,
SAVE_ITEM,
RightHandSideExpression etc. work in the same way.
The user defined indices of the form %indC_...% can be used in order to discretely colorize the simulation domain for analysis. In the %indU_...% case, this would smear out as the values would be interpolated.
Logging
The complete collection of indices and other
MESHFREE variables of the form %...% can be found in the file Variables.log in the directory log_
.
For an example, see tut3d_08.