Lookup Table¶
Introduction¶
A Lookup Table provides tabulated data that other simulation components or UDFs can query at runtime. Rather than hard-coding piecewise logic or long conditional statements, users can define empirical or vendor-supplied correlations (such as viscosity versus temperature, pump head versus flow rate, or heat-transfer coefficient versus Reynolds number), and let the solver interpolate between the tabulated points as needed.
The table is defined using the context-specific command Edit Lookup Table, which opens a two-column table where you enter the independent variable (x) and the corresponding dependent variable (y). During simulation, the solver evaluates intermediate values using a piecewise cubic Hermite spline, which preserves monotonicity and provides smooth first-derivative transitions between points, offering better fidelity than simple linear interpolation.
Lookup tables are commonly used to incorporate empirical information—such as material properties, equipment performance curves, or custom experimental data—into a simulation in a clean, maintainable way, making it easy to update or swap values without editing the code.
- Resample Length
This setting specifies how finely the table will be internally resampled for efficient runtime queries. The solver uses the defined (x, y) points to generate an evenly spaced internal table of the specified length, evaluating each sample via the piecewise cubic Hermite spline.
The resample length should be at least as large as the number of data points to preserve resolution; larger values provide smoother interpolation.
- Notes
This is an optional text field for recording the source of the data, the units, or other documentation relevant to the table.
Statistics Filter Toolbar¶
Context-Specific Toolbar Options |
Description |
---|---|
|
The Help command launches the M-Star reference documentation in your web browser. |
|
The Edit Lookup Table allows you to edit sampled data that other components query at runtime. |
See also Child Geometry Context Specific Toolbar.
For a full description of each selection on the Context-Specific Toolbar, see Toolbar Selections.