Skip to content

Thermo-Chemistry

ThermoChemistry is the chemistry-mechanism front-end for the reactive-flow solver. It reads a reaction mechanism (e.g. a Cantera YAML file), a phase name, a transport model, the fuel and oxidiser names, the equivalence ratio, and the number of phases. The resolved kinetics are used by SpeciesTransport and EnergyTransport.

Key Classes and Concepts

  • ThermoChemistry : public OPObject: mechanism loader + source of reaction rates for the reactive-flow sub-tree.

Usage

Input

Defined in the @ThermoChemistry block.

text
@ThermoChemistry

$ReactionMechanism   Mechanism file (Cantera YAML)    : CH4_BFER.yaml
$PhaseName           Cantera phase name               : CH4_BFER_mix
$TransportName       Transport model                  : mixture-averaged
$FuelName            Fuel species name                : CH4
$Oxidizer            Oxidiser mixture                 : air
$EquivRatio          Equivalence ratio (ϕ)            : 1.0
$nPhases             Number of reactive phases        : 1.0
TokenVariableTypeDefault
$ReactionMechanismReactionMechanismstringCH4_BFER.yaml
$PhaseNamePhaseNamestringCH4_BFER_mix
$TransportNameTransportNamestringmixture-averaged
$FuelNameFuelNamestringCH4
$OxidizerOxidizerstringair
$EquivRatioERdouble1.0
$nPhasesnPhasesdouble1.0

Output

Reaction rates are published into the SpeciesTransport and EnergyTransport update; no dedicated file.

Example

cpp
#include "ReactiveFlows/ThermoChemistry.h"

ThermoChemistry TC(OPSettings, InputFile);
// TC feeds reaction rates into ST and ET during their Solve calls.

Dependencies

Released under the GNU GPLv3 License.