Custom Fields let you create and display new quantities in your simulation visualizations, enabling you to extract deeper insights. You can use any existing field and mathematical expressions to define them.
To create a Custom Field:
While viewing simulation results, click the + icon next to Custom Fields in the right-side panel and select Scalar.
A new window will open, similar to the one used for Custom Outputs. Enter your desired expression here.
Once the expression is error-free, it will be computed and displayed.
Custom Fields work seamlessly with both client-side and server-side rendering modes. They can be applied to filters like slices and thresholds or used in 2D XY plots.
Syntax
Expressions can reference existing visualization fields by name, with auto-complete to assist you. To access vector field components, use the following suffixes:
-X
,-Y
,-Z
: Specific directional components.-Magnitude
: Overall magnitude of the vector.
The same arithmetic operators and functions available for Custom Outputs are also supported here.
Example: Calculate and display the local speed of sound in an Ideal Gas simulation.
Error Checking
Expressions are validated to prevent common errors such as:
Missing parentheses.
Unknown field names.
Incorrect number of function arguments.
Using vector fields as if they were scalars.
If errors are detected, they’ll be highlighted in red below the input box.
Limitations
Custom Fields currently support scalar fields only. Support for vector fields is coming soon.
Fields from actuator disks are not available for use in custom expressions.
You cannot reference one custom field within another.