rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
Loading...
Searching...
No Matches
rizer::ReverseTwoTempData Struct Reference

Shared data for all reverse-two-temperature-plasma reactions. More...

#include <PlasmaRates.h>

Inheritance diagram for rizer::ReverseTwoTempData:
Cantera::ReactionData

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::Solutionshadow
 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

Detailed Description

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.

Member Function Documentation

◆ buildShadow()

void rizer::ReverseTwoTempData::buildShadow ( const Cantera::ThermoPhase & phase,
const Cantera::Kinetics & kin )

Lazily build the ideal-gas shadow Solution from the main phase + kinetics.

Parameters
phaseMain (plasma) phase whose species/state seed the shadow ideal-gas phase.
kinMain kinetics manager whose forward reactions are copied into the shadow.

Definition at line 217 of file PlasmaRates.cpp.

◆ invalidateCache()

void rizer::ReverseTwoTempData::invalidateCache ( )
inlineoverridevirtual

Reimplemented from Cantera::ReactionData.

Definition at line 197 of file PlasmaRates.h.

◆ update() [1/4]

bool rizer::ReverseTwoTempData::update ( const Cantera::ThermoPhase & phase,
const Cantera::Kinetics & kin )
overridevirtual

Refresh the cached Tg, Te, P and the shadow-solution rate/equilibrium constants.

Parameters
phaseMain (plasma) phase to read Tg, Te, P and composition from.
kinMain kinetics manager, source of the forward reactions to shadow.

Implements Cantera::ReactionData.

Definition at line 270 of file PlasmaRates.cpp.

◆ update() [2/4]

virtual void Cantera::ReactionData::update ( double T)
virtual

Reimplemented from Cantera::ReactionData.

◆ update() [3/4]

virtual void Cantera::ReactionData::update ( double T,
double extra )
virtual

Reimplemented from Cantera::ReactionData.

◆ update() [4/4]

virtual void Cantera::ReactionData::update ( double T,
span< const double > extra )
virtual

Reimplemented from Cantera::ReactionData.

Member Data Documentation

◆ fwdIndex

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.

◆ Keq_Te

std::vector<double> rizer::ReverseTwoTempData::Keq_Te

Definition at line 218 of file PlasmaRates.h.

◆ Keq_Tg

std::vector<double> rizer::ReverseTwoTempData::Keq_Tg

Definition at line 215 of file PlasmaRates.h.

◆ kf_Te

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.

◆ kf_Tg

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.

◆ shadow

std::shared_ptr<Cantera::Solution> rizer::ReverseTwoTempData::shadow

Forward-only ideal-gas shadow solution [-].

Definition at line 212 of file PlasmaRates.h.


The documentation for this struct was generated from the following files: