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

Reverse of a forward two-temperature-plasma reaction: More...

#include <PlasmaRates.h>

Inheritance diagram for rizer::ReverseTwoTemperaturePlasmaRate:
Cantera::ReactionRate

Public Member Functions

 ReverseTwoTemperaturePlasmaRate ()=default
 ReverseTwoTemperaturePlasmaRate (const Cantera::AnyMap &node, const Cantera::UnitStack &rate_units)
 Construct from a YAML/AnyMap rate node.
std::unique_ptr< Cantera::MultiRateBasenewMultiRate () const override
const std::string type () const override
void setParameters (const Cantera::AnyMap &node, const Cantera::UnitStack &rate_units) override
 Set the rate parameters from a YAML/AnyMap rate node.
double evalFromStruct (const ReverseTwoTempData &shared_data) const
 Evaluate the reverse rate \( k_{rev}(T) = k_{fwd}(T)/K_{eq}(T) \) at the tagged temperature.
Public Member Functions inherited from Cantera::ReactionRate
virtual const string subType () const
AnyMap parameters () const
const UnitsconversionUnits () const
virtual void setRateUnits (const UnitStack &rate_units)
virtual void check (const string &equation)
virtual void validate (const string &equation, const Kinetics &kin)
size_t rateIndex () const
void setRateIndex (size_t idx)
virtual void setContext (const Reaction &rxn, const Kinetics &kin)
double eval (double T)
double eval (double T, double extra)
double eval (double T, span< const double > extra)
bool valid () const
bool compositionDependent ()
void setCompositionDependence (bool comp_dep)

Protected Member Functions

void getParameters (Cantera::AnyMap &node) const override

Protected Attributes

std::string m_forward_equation
 Equation string of the forward reaction this rate reverses [-].
std::string m_T = "Tg"
 Which temperature tags this reaction ("Te" or "Tg"); informational, kept for YAML round-trip [-].
size_t m_idx = Cantera::npos
 Cached index of the forward reaction in the shadow kinetics' reaction list [-].
Protected Attributes inherited from Cantera::ReactionRate
AnyMap m_input
size_t m_rate_index
bool m_valid
bool m_composition_dependent_rate
Units m_conversion_units

Detailed Description

Reverse of a forward two-temperature-plasma reaction:

\[ k_{rev}(T) = \frac{k_{fwd}(T)}{K_{eq}(T)} \]

at T = Tg or Te (the T: tag), from the shadow.

Definition at line 234 of file PlasmaRates.h.

Constructor & Destructor Documentation

◆ ReverseTwoTemperaturePlasmaRate() [1/2]

rizer::ReverseTwoTemperaturePlasmaRate::ReverseTwoTemperaturePlasmaRate ( )
default

◆ ReverseTwoTemperaturePlasmaRate() [2/2]

rizer::ReverseTwoTemperaturePlasmaRate::ReverseTwoTemperaturePlasmaRate ( const Cantera::AnyMap & node,
const Cantera::UnitStack & rate_units )

Construct from a YAML/AnyMap rate node.

Parameters
nodeYAML/AnyMap node for this reaction's rate block (holds "forward_equation", "T").
rate_unitsUnit context passed through to ReactionRate::setParameters.

Definition at line 308 of file PlasmaRates.cpp.

Member Function Documentation

◆ evalFromStruct()

double rizer::ReverseTwoTemperaturePlasmaRate::evalFromStruct ( const ReverseTwoTempData & shared_data) const

Evaluate the reverse rate \( k_{rev}(T) = k_{fwd}(T)/K_{eq}(T) \) at the tagged temperature.

Parameters
shared_dataShared per-reaction-type data holding the shadow solution and cached kf/Keq at Tg, Te.

Definition at line 347 of file PlasmaRates.cpp.

◆ getParameters()

void rizer::ReverseTwoTemperaturePlasmaRate::getParameters ( Cantera::AnyMap & node) const
overrideprotectedvirtual

Reimplemented from Cantera::ReactionRate.

Definition at line 331 of file PlasmaRates.cpp.

◆ newMultiRate()

std::unique_ptr< MultiRateBase > rizer::ReverseTwoTemperaturePlasmaRate::newMultiRate ( ) const
overridevirtual

Reimplemented from Cantera::ReactionRate.

Definition at line 315 of file PlasmaRates.cpp.

◆ setParameters()

void rizer::ReverseTwoTemperaturePlasmaRate::setParameters ( const Cantera::AnyMap & node,
const Cantera::UnitStack & rate_units )
overridevirtual

Set the rate parameters from a YAML/AnyMap rate node.

Parameters
nodeYAML/AnyMap node for this reaction's rate block (holds "forward_equation", "T").
rate_unitsUnit context passed through to ReactionRate::setParameters.

Reimplemented from Cantera::ReactionRate.

Definition at line 321 of file PlasmaRates.cpp.

◆ type()

const std::string rizer::ReverseTwoTemperaturePlasmaRate::type ( ) const
inlineoverridevirtual

Implements Cantera::ReactionRate.

Definition at line 249 of file PlasmaRates.h.

Member Data Documentation

◆ m_forward_equation

std::string rizer::ReverseTwoTemperaturePlasmaRate::m_forward_equation
protected

Equation string of the forward reaction this rate reverses [-].

Definition at line 271 of file PlasmaRates.h.

◆ m_idx

size_t rizer::ReverseTwoTemperaturePlasmaRate::m_idx = Cantera::npos
mutableprotected

Cached index of the forward reaction in the shadow kinetics' reaction list [-].

Definition at line 277 of file PlasmaRates.h.

◆ m_T

std::string rizer::ReverseTwoTemperaturePlasmaRate::m_T = "Tg"
protected

Which temperature tags this reaction ("Te" or "Tg"); informational, kept for YAML round-trip [-].

Definition at line 274 of file PlasmaRates.h.


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