Appendix: tabulated_data Utility
The tabulated_data utility generates tabulated equation-of-state and optional transport files in
the EoSTables/<table_name>/ layout used by Stream tabular EoS workflows.
The utility is installed as tabulated_data in the Stream bin directory.
What The Utility Produces
For a given source mode and set of options, the utility writes a table directory:
EoSTables/<table_name>/
The directory contains:
info.desc(table metadata + file references)omega.fitEoS correction surfaces: - kd-tree format:
densityCorrect_*.kd,energyCorrect_*.kd- fixed-table format:densityCorrect.fixedTable,energyCorrect.fixedTableOptional fields: -
entropy_*.kd-viscosity_*.kd-conductivity_*.kdOptional temperature limits: -
TlimitHi.fit-TlimitLo.fit
The exact set of files depends on source mode and output flags.
Invocation
General CLI form:
tabulated_data [--log_level {DEBUG,INFO,WARNING,ERROR}] {cantera,fit_table,refprop} ...
Source modes:
cantera: samples a pure-species state from a Cantera mechanism.fit_table: ingests CHEM-fitTablestyle files.refprop: samples a pure fluid through CoolProp backend queries (REFPROP or HEOS).
Required Inputs By Mode
Mode |
Required Inputs |
Notes |
|---|---|---|
|
|
Requires Python Cantera package. |
|
|
Pressure/temperature bounds are optional and default to fit file limits. |
|
|
Requires CoolProp Python package. Backend defaults to |
Common Flags
These options are available for all source modes unless noted otherwise.
Flag |
Default |
Description |
|---|---|---|
|
|
Root output directory. |
|
|
Write kd files, fixed tables, or both. |
|
|
When |
|
mode-dependent |
|
|
|
Constant omega value when |
|
none |
Existing fit file to copy when |
|
|
Interval count for generated omega fit. |
|
none |
Optional explicit high-T limit fit file to copy as |
|
none |
Optional explicit low-T limit fit file to copy as |
|
|
Base grid depth in each axis (cells = \(2^{depth}\)). |
|
none |
Explicit pressure/temperature cell counts; overrides depth for that axis. |
|
off |
Enables adaptive depth selection within specified min/max depths. |
|
|
Minimum adaptive depths. |
|
|
Adaptive mean relative error target. |
|
|
Adaptive max relative error target. |
|
|
Small floor in adaptive relative error denominator. |
|
|
Maximum adaptive refinement iterations. |
|
|
Pressure axis scaling for fitting grid. |
|
|
Temperature axis scaling for fitting grid. |
|
mode-dependent |
Baseline correction model ( |
|
|
Baseline coefficients used when |
Notes:
--adaptive_gridcannot be combined with--num_por--num_t.--omega_mode autorequires the source adapter to provide omega fit data.
cantera Mode
Purpose: sample a pure species from a Cantera mechanism and produce tabulated correction fields.
Additional flags:
Flag |
Default |
Description |
|---|---|---|
|
required |
Cantera YAML mechanism path. |
|
none |
Optional phase name in mechanism. |
|
required |
Species name to tabulate as pure fluid. |
|
species name |
Output table directory name. |
|
required |
Pressure bounds [Pa]. |
|
required |
Temperature bounds [K]. |
|
off |
Skip viscosity/conductivity table generation. |
|
off |
Also write entropy table. |
Baseline behavior:
Default
--baseline_mode idealcomputes baseline terms from sampled Cantera state.
fit_table Mode
Purpose: ingest CHEM -fitTable input and generate Stream table outputs.
Additional flags:
Flag |
Default |
Description |
|---|---|---|
|
required |
Path to CHEM fit table input file. |
|
file stem |
Output table directory name. |
|
source limits |
Optional resampling pressure bounds [Pa]. |
|
source limits |
Optional resampling temperature bounds [K]. |
|
|
|
Fit table input format (CHEM style):
m n
nT
T_1 T_2 ... T_nT
nP
P_1 P_2 ... P_nP
rho(P1,T1) ... rho(PnP,TnT) # nP*nT values
h(P1,T1) ... h(PnP,TnT) # nP*nT values
Compatibility notes:
--adaptive_gridis supported infit_tablemode only when--fit_eval_mode chem.
refprop Mode
Purpose: sample pure-fluid properties with CoolProp backends and generate tabulated outputs.
Additional flags:
Flag |
Default |
Description |
|---|---|---|
|
required |
Fluid name (for example |
|
|
CoolProp backend prefix. |
|
fluid name |
Output table directory name. |
|
required |
Pressure bounds [Pa]. |
|
required |
Temperature bounds [K]. |
|
off |
Skip viscosity/conductivity table generation. |
|
off |
Also write entropy table. |
|
off |
Bias sampling toward liquid side near saturation. |
|
off |
Bias sampling toward vapor side near saturation. |
|
mode-dependent |
Custom bias multiplier for saturation pressure mapping. |
|
off |
Forces bias factor to 1.0. |
|
auto on |
Enable or disable generated |
|
|
Interval count for generated T-limit fits. |
refprop-specific behavior:
--baseline_mode autois available in this mode and is the default.--liquid_biasand--vapor_biasare mutually exclusive.Default
--omega_modein this mode isauto.
Output Selection And Referencing
--output_mode controls file generation:
kd: writes kd-tree fields.fixed: writes fixed-table fields.both: writes both kd and fixed outputs.
--info_mode controls what info.desc points to when --output_mode both is used.
Examples
Cantera species tabulation:
tabulated_data cantera chem.yaml --species O2 \
--pmin 1.0e5 --pmax 5.0e6 --tmin 250 --tmax 3000 \
--table_name O2_table --output_mode both --info_mode kd
CHEM fit table conversion:
tabulated_data fit_table oxygen.fitTable \
--table_name oxygen_tab --fit_eval_mode chem \
--adaptive_grid --min_depth_x 2 --min_depth_y 2 --depth_x 6 --depth_y 6
REFPROP/HEOS-style pure-fluid table:
tabulated_data refprop --backend HEOS --fluid Water \
--pmin 1.0e5 --pmax 2.0e7 --tmin 280 --tmax 600 \
--liquid_bias --output_mode kd
Dependencies And Troubleshooting
canteramode requires Cantera Python package.refpropmode requires CoolProp Python package.If
--omega_mode fitfileis used,--omega_fit_filemust be provided.If explicitly-provided
--tlimit_hi_fitor--tlimit_lo_fitpaths are invalid, the utility exits with an error.
For the latest option set, run:
tabulated_data -h
tabulated_data cantera -h
tabulated_data fit_table -h
tabulated_data refprop -h