Run Scripts
These python scripts use the CMLM package to generate tabulated chemistry data.
create_dummy_table_nd.py
Create sample chemtables with dummy data for testing purposes.
Usage
Invoke on the command line:
python create_dummy_table_nd.py <input_file.toml>
Input File
The input file is a TOML format file with single section
[table]that specifies the following:
ndim(int): number of dimensions in table
ngrid(int): number of grid points in each dimension
outfile_prefix(string): path to save files
create_spray_table_nd.py
Create chemtable for nonreacting multicomponent spray evaporation problems.
The table will have a number of dimensions (mixture fractions) equal to the number
of spray components, because mixing with oxidizer is also considered. If the
use_fmix option is specified, instead of standard mixture fractions (sum to 1,
state space is the unit simplex), the table is populated in terms of normalized
mixture fractions (each goes from 0 to 1, state space is a unit cube). Liquid
fuel temperatures and latent heats are specified for each fuel; it is assumed
that the gas phase temperature adjacent to the droplet is temperature that conserves
enthalpy (i.e., it is lower than the liquid temperature due to the vaporization
process).
This script uses Cantera and the user must specify a Cantera yaml format chemical mechanism. The liquid_fuels_nonreacting mechanism that comes with PelePhysics is likely a good choice.
Usage
Invoke on the command line:
python create_spray_table_nd.py <input_file.toml>
Input File
The input file is a TOML format file with sections [phys] and [table],
corresponding to physical/BC inputs and parameters for the table. See the
sample input file for more details.