Cantera 2.6.0
|
Data container holding shared data specific to ChebyshevRate. More...
#include <ChebyshevRate.h>
Public Member Functions | |
virtual void | update (double T) override |
Update data container based on temperature T More... | |
virtual void | update (double T, double P) override |
Update data container based on temperature T and an extra parameter. More... | |
virtual bool | update (const ThermoPhase &phase, const Kinetics &kin) override |
Update data container based on thermodynamic phase state. More... | |
void | perturbPressure (double deltaP) |
Perturb pressure of data container. More... | |
virtual void | restore () override |
Restore data container after a perturbation. More... | |
virtual void | invalidateCache () override |
Force shared data and reaction rates to be updated next time. More... | |
virtual void | update (double T) |
Update data container based on temperature T More... | |
virtual void | update (double T, double extra) |
Update data container based on temperature T and an extra parameter. More... | |
virtual void | update (double T, const vector_fp &extra) |
Update data container based on temperature T and a vector parameter extra More... | |
virtual bool | update (const ThermoPhase &phase, const Kinetics &kin)=0 |
Update data container based on thermodynamic phase state. More... | |
Public Member Functions inherited from ReactionData | |
void | perturbTemperature (double deltaT) |
Perturb temperature of data container. More... | |
virtual void | resize (size_t nSpecies, size_t nReactions, size_t nPhases) |
Update number of species, reactions and phases. More... | |
Public Attributes | |
double | pressure |
pressure More... | |
double | log10P |
base 10 logarithm of pressure More... | |
Public Attributes inherited from ReactionData | |
double | temperature |
temperature More... | |
double | logT |
logarithm of temperature More... | |
double | recipT |
inverse of temperature More... | |
Protected Attributes | |
double | m_pressure_buf |
buffered pressure More... | |
Protected Attributes inherited from ReactionData | |
double | m_temperature_buf |
buffered temperature More... | |
Data container holding shared data specific to ChebyshevRate.
The data container ChebyshevData
holds precalculated data common to all ChebyshevRate
objects.
Definition at line 23 of file ChebyshevRate.h.
|
inline |
Definition at line 25 of file ChebyshevRate.h.
|
overridevirtual |
Update data container based on temperature T
Only used in conjunction with MultiRateBase::evalSingle / ReactionRate::eval. This method allows for testing of a reaction rate expression outside of Kinetics reaction rate evaluators.
Reimplemented from ReactionData.
Definition at line 12 of file ChebyshevRate.cpp.
Referenced by ChebyshevData::perturbPressure(), and ChebyshevData::restore().
|
inlineoverridevirtual |
Update data container based on temperature T and an extra parameter.
Only used in conjunction with MultiRateBase::evalSingle / ReactionRate::eval. This method allows for testing of a reaction rate expression outside of Kinetics reaction rate evaluators.
Reimplemented from ReactionData.
Definition at line 29 of file ChebyshevRate.h.
|
overridevirtual |
Update data container based on thermodynamic phase state.
This update mechanism is used by Kinetics reaction rate evaluators.
evalFromStruct
method needs to be called (assuming previously-calculated values were cached) Implements ReactionData.
Definition at line 18 of file ChebyshevRate.cpp.
void perturbPressure | ( | double | deltaP | ) |
Perturb pressure of data container.
The method is used for the evaluation of numerical derivatives.
deltaP | relative pressure perturbation |
Definition at line 29 of file ChebyshevRate.cpp.
References ChebyshevData::m_pressure_buf, ChebyshevData::pressure, ReactionData::temperature, and ChebyshevData::update().
|
overridevirtual |
Restore data container after a perturbation.
Reimplemented from ReactionData.
Definition at line 39 of file ChebyshevRate.cpp.
References ChebyshevData::m_pressure_buf, ReactionData::restore(), ReactionData::temperature, and ChebyshevData::update().
|
inlineoverridevirtual |
Force shared data and reaction rates to be updated next time.
This is called by functions that change quantities affecting rate calculations that are normally assumed to be constant, like the reaction rate parameters or the number of reactions.
Reimplemented from ReactionData.
Definition at line 48 of file ChebyshevRate.h.
References ReactionData::invalidateCache(), and ChebyshevData::pressure.
|
inlinevirtual |
Update data container based on temperature T
Only used in conjunction with MultiRateBase::evalSingle / ReactionRate::eval. This method allows for testing of a reaction rate expression outside of Kinetics reaction rate evaluators.
Reimplemented from ReactionData.
Definition at line 35 of file ReactionData.h.
|
inlinevirtual |
Update data container based on temperature T and an extra parameter.
Only used in conjunction with MultiRateBase::evalSingle / ReactionRate::eval. This method allows for testing of a reaction rate expression outside of Kinetics reaction rate evaluators.
Reimplemented from ReactionData.
Definition at line 47 of file ReactionData.h.
|
inlinevirtual |
Update data container based on temperature T and a vector parameter extra
Only used in conjunction with MultiRateBase::evalSingle / ReactionRate::eval. This method allows for testing of a reaction rate expression outside of Kinetics reaction rate evaluators.
Reimplemented from ReactionData.
Definition at line 61 of file ReactionData.h.
|
virtual |
Update data container based on thermodynamic phase state.
This update mechanism is used by Kinetics reaction rate evaluators.
evalFromStruct
method needs to be called (assuming previously-calculated values were cached) Implements ReactionData.
double pressure |
pressure
Definition at line 53 of file ChebyshevRate.h.
Referenced by ChebyshevData::invalidateCache(), and ChebyshevData::perturbPressure().
double log10P |
base 10 logarithm of pressure
Definition at line 54 of file ChebyshevRate.h.
Referenced by ChebyshevRate::updateFromStruct().
|
protected |
buffered pressure
Definition at line 57 of file ChebyshevRate.h.
Referenced by ChebyshevData::perturbPressure(), and ChebyshevData::restore().