Reference: components
Lookup table
Updated 3 November 2026 · 1 min read
A lookup table is a curve made of points, called like a function in formulas: Effect(Crowding). Straight lines between the points, flat beyond the ends.
Settings#
| Setting | What it is |
|---|---|
| Name | The function’s name in formulas. |
| Unit | The unit of what it gives back. |
| What x stands for | A label for the x axis. It doesn’t affect the arithmetic. |
| The curve | Drag a point to move it. Double-click the background to add a point, or a point to remove it. |
| Points (x, y) | The points as text, one x, y pair a line. Paste two columns from a spreadsheet here. |
Rules#
- At least two points, every number finite, and x going strictly up.
- Between two points the value is read along the straight line joining them.
- Below the first point and above the last, the value stays at the end point’s value.
In the C##
The points become two arrays, and the table a one-line function that interpolates between them:
// Effect: ratio against Crowding
double[] Effect_xs = [0, 0.5, 1, 1.5, 2];
double[] Effect_ys = [1, 0.95, 0.6, 0.2, 0];
double Effect(double x) => Table_Lerp(Effect_xs, Effect_ys, x);
Tables made from correlations#
The oil and gas kit’s PVT object makes its tables for you, from published correlations worked out by SepalSolver. Select one and the panel says how it was made, with a button to make it again with other settings. You can paste laboratory values over the points.
See also
- Use a curve from data in a formulaDraw or paste a relationship you know from data, and call it like a function.
- FormulasWhat a formula can contain: names, t, operators and functions.
- Oil and gas kitPVT, tank, aquifer, history, diagnostics and wells for material balance.
- C# blockA variable worked out by C# you write.