|
rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
|
Shared data for all reverse-two-temperature-plasma reactions. More...
#include <PlasmaRates.h>
Public Member Functions | |
| bool | update (const Cantera::ThermoPhase &phase, const Cantera::Kinetics &kin) override |
| Refresh the cached Tg, Te, P and the shadow-solution rate/equilibrium constants. | |
| void | invalidateCache () override |
| void | buildShadow (const Cantera::ThermoPhase &phase, const Cantera::Kinetics &kin) |
| Lazily build the ideal-gas shadow Solution from the main phase + kinetics. | |
| virtual void | update (double T) |
| virtual void | update (double T, double extra) |
| virtual void | update (double T, span< const double > extra) |
| Public Member Functions inherited from Cantera::ReactionData | |
| void | perturbTemperature (double deltaT) |
| virtual void | restore () |
| virtual void | resize (Kinetics &kin) |
Public Attributes | |
| std::shared_ptr< Cantera::Solution > | shadow |
| Forward-only ideal-gas shadow solution [-]. | |
| std::vector< double > | kf_Tg |
| Per-reaction forward rate constant [kmol/m^3/s units, order-dependent] and dimensionless Kc, both evaluated at Tg [K]. | |
| std::vector< double > | Keq_Tg |
| std::vector< double > | kf_Te |
| Per-reaction forward rate constant [kmol/m^3/s units, order-dependent] and dimensionless Kc, both evaluated at Te [K]. | |
| std::vector< double > | Keq_Te |
| std::unordered_map< std::string, size_t > | fwdIndex |
| Forward reaction equation string -> index into the shadow kinetics' reaction list [-]. | |
| Public Attributes inherited from Cantera::ReactionData | |
| double | temperature |
| double | logT |
| double | recipT |
Additional Inherited Members | |
| Protected Attributes inherited from Cantera::ReactionData | |
| double | m_temperature_buf |
Shared data for all reverse-two-temperature-plasma reactions.
Holds a single-temperature ideal-gas "shadow" Solution built from the forward reactions only (so it contains no reverse/janev rates and cannot recurse).
This mirrors rizer's Python reference (ExtensibleTwoTempPlasmaRateData): the shadow is evaluated at BOTH the gas temperature Tg and the electron temperature Te (each a single-temperature ideal-gas state), caching the forward rate constants and equilibrium constants at each. A reverse reaction then uses \( k_{rev} = k_{fwd}(T)/K_{eq}(T) \) at the temperature named by its T: tag (Tg for heavy reactions, Te for electron reactions) – detailed balance at one temperature.
Definition at line 186 of file PlasmaRates.h.
| void rizer::ReverseTwoTempData::buildShadow | ( | const Cantera::ThermoPhase & | phase, |
| const Cantera::Kinetics & | kin ) |
Lazily build the ideal-gas shadow Solution from the main phase + kinetics.
| phase | Main (plasma) phase whose species/state seed the shadow ideal-gas phase. |
| kin | Main kinetics manager whose forward reactions are copied into the shadow. |
Definition at line 217 of file PlasmaRates.cpp.
|
inlineoverridevirtual |
Reimplemented from Cantera::ReactionData.
Definition at line 197 of file PlasmaRates.h.
|
overridevirtual |
Refresh the cached Tg, Te, P and the shadow-solution rate/equilibrium constants.
| phase | Main (plasma) phase to read Tg, Te, P and composition from. |
| kin | Main kinetics manager, source of the forward reactions to shadow. |
Implements Cantera::ReactionData.
Definition at line 270 of file PlasmaRates.cpp.
|
virtual |
Reimplemented from Cantera::ReactionData.
|
virtual |
Reimplemented from Cantera::ReactionData.
|
virtual |
Reimplemented from Cantera::ReactionData.
| std::unordered_map<std::string, size_t> rizer::ReverseTwoTempData::fwdIndex |
Forward reaction equation string -> index into the shadow kinetics' reaction list [-].
Definition at line 221 of file PlasmaRates.h.
| std::vector<double> rizer::ReverseTwoTempData::Keq_Te |
Definition at line 218 of file PlasmaRates.h.
| std::vector<double> rizer::ReverseTwoTempData::Keq_Tg |
Definition at line 215 of file PlasmaRates.h.
| std::vector<double> rizer::ReverseTwoTempData::kf_Te |
Per-reaction forward rate constant [kmol/m^3/s units, order-dependent] and dimensionless Kc, both evaluated at Te [K].
Definition at line 218 of file PlasmaRates.h.
| std::vector<double> rizer::ReverseTwoTempData::kf_Tg |
Per-reaction forward rate constant [kmol/m^3/s units, order-dependent] and dimensionless Kc, both evaluated at Tg [K].
Definition at line 215 of file PlasmaRates.h.
| std::shared_ptr<Cantera::Solution> rizer::ReverseTwoTempData::shadow |
Forward-only ideal-gas shadow solution [-].
Definition at line 212 of file PlasmaRates.h.