|
rizer.cantera_ext
C++ Cantera 1-D plasma extension (custom Domain1D models and solvers)
|
#include <PlasmaRates.h>
Public Member Functions | |
| DruyvesteynRate ()=default | |
| DruyvesteynRate (const Cantera::AnyMap &node, const Cantera::UnitStack &rate_units) | |
| Construct from a YAML/AnyMap rate node. | |
| std::unique_ptr< Cantera::MultiRateBase > | newMultiRate () 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. | |
| void | validate (const std::string &equation, const Cantera::Kinetics &kin) override |
| Reject a missing or negative pre-factor (mirrors the Python rate's validate; missing "A" leaves m_A as NaN, which the negative check alone would not catch since NaN < 0 is false). | |
| double | evalFromStruct (const ElectronTemperatureData &shared_data) const |
| Evaluate the Druyvesteyn rate \( k(T_e) \). | |
| Public Member Functions inherited from Cantera::ReactionRate | |
| virtual const string | subType () const |
| AnyMap | parameters () const |
| const Units & | conversionUnits () 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 | |
| double | m_A = NAN |
| Pre-factor in Cantera's internal (kmol, m, s) rate-coefficient units [order-dependent]. | |
| double | m_b = NAN |
| Te exponent [-]. | |
| double | m_Ea_K = NAN |
| Activation energy expressed in Kelvin [K]. | |
| 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 |
\[ k(T_e) = A \, T_e^{\,b} \, \exp\!\left(-\left(E_a/T_e\right)^2\right) \]
Modified Arrhenius in the electron temperature with the squared-ratio exponential characteristic of a Druyvesteyn EEDF; \( E_a \) is expressed in Kelvin so the exponent is dimensionless. Shares ElectronTemperatureData with the Janev rate (both need Te only).
Definition at line 123 of file PlasmaRates.h.
|
default |
| rizer::DruyvesteynRate::DruyvesteynRate | ( | const Cantera::AnyMap & | node, |
| const Cantera::UnitStack & | rate_units ) |
Construct from a YAML/AnyMap rate node.
| node | YAML/AnyMap node for this reaction's rate block (holds "A", "b", "Ea"). |
| rate_units | Unit context used to convert "A" into Cantera's internal rate-coeff units. |
Definition at line 140 of file PlasmaRates.cpp.
| double rizer::DruyvesteynRate::evalFromStruct | ( | const ElectronTemperatureData & | shared_data | ) | const |
Evaluate the Druyvesteyn rate \( k(T_e) \).
| shared_data | Shared per-reaction-type data holding the current electron temperature Te [K]. |
Definition at line 201 of file PlasmaRates.cpp.
|
overrideprotectedvirtual |
Reimplemented from Cantera::ReactionRate.
Definition at line 187 of file PlasmaRates.cpp.
|
overridevirtual |
Reimplemented from Cantera::ReactionRate.
Definition at line 146 of file PlasmaRates.cpp.
|
overridevirtual |
Set the rate parameters from a YAML/AnyMap rate node.
| node | YAML/AnyMap node for this reaction's rate block (holds "A", "b", "Ea"). |
| rate_units | Unit context used to convert "A" into Cantera's internal rate-coeff units. |
Reimplemented from Cantera::ReactionRate.
Definition at line 151 of file PlasmaRates.cpp.
|
inlineoverridevirtual |
Implements Cantera::ReactionRate.
Definition at line 138 of file PlasmaRates.h.
|
override |
Reject a missing or negative pre-factor (mirrors the Python rate's validate; missing "A" leaves m_A as NaN, which the negative check alone would not catch since NaN < 0 is false).
| equation | Reaction equation, used in the error message. |
| kin | Owning kinetics manager, unused here. |
Definition at line 167 of file PlasmaRates.cpp.
|
protected |
Pre-factor in Cantera's internal (kmol, m, s) rate-coefficient units [order-dependent].
Definition at line 164 of file PlasmaRates.h.
|
protected |
Te exponent [-].
Definition at line 166 of file PlasmaRates.h.
|
protected |
Activation energy expressed in Kelvin [K].
Definition at line 167 of file PlasmaRates.h.