Cantera  3.1.0
Loading...
Searching...
No Matches
LinearBurkeData Struct Reference

Data container holding shared data specific to LinearBurkeRate. More...

#include <LinearBurkeRate.h>

Inheritance diagram for LinearBurkeData:
[legend]

Detailed Description

Data container holding shared data specific to LinearBurkeRate.

The data container LinearBurkeData holds precalculated data common to all LinearBurkeRate objects.

Definition at line 23 of file LinearBurkeRate.h.

Public Member Functions

void update (double T, double P) override
 Update data container based on temperature T and an extra parameter.
 
bool update (const ThermoPhase &phase, const Kinetics &kin) override
 Update data container based on thermodynamic phase state.
 
void perturbPressure (double deltaP)
 Perturb pressure of data container.
 
void restore () override
 Restore data container after a perturbation.
 
virtual void resize (size_t nSpecies, size_t nReactions, size_t nPhases) override
 Update number of species, reactions and phases.
 
void invalidateCache () override
 Force shared data and reaction rates to be updated next time.
 
virtual void update (double T)
 Update data container based on temperature T
 
virtual void update (double T, double extra)
 Update data container based on temperature T and an extra parameter.
 
virtual void update (double T, const vector< double > &extra)
 Update data container based on temperature T and a vector parameter extra
 
virtual bool update (const ThermoPhase &phase, const Kinetics &kin)=0
 Update data container based on thermodynamic phase state.
 
- Public Member Functions inherited from ReactionData
virtual void update (double T)
 Update data container based on temperature T
 
virtual void update (double T, double extra)
 Update data container based on temperature T and an extra parameter.
 
virtual void update (double T, const vector< double > &extra)
 Update data container based on temperature T and a vector parameter extra
 
virtual bool update (const ThermoPhase &phase, const Kinetics &kin)=0
 Update data container based on thermodynamic phase state.
 
void perturbTemperature (double deltaT)
 Perturb temperature of data container.
 
virtual void restore ()
 Restore data container after a perturbation.
 
virtual void resize (size_t nSpecies, size_t nReactions, size_t nPhases)
 Update number of species, reactions and phases.
 
virtual void invalidateCache ()
 Force shared data and reaction rates to be updated next time.
 

Public Attributes

double pressure = NAN
 Pressure.
 
double logP = 0.0
 Logarithm of pressure.
 
bool ready = false
 Boolean indicating whether vectors are accessible.
 
vector< double > moleFractions
 
int mf_number
 
- Public Attributes inherited from ReactionData
double temperature = 1.0
 temperature
 
double logT = 0.0
 logarithm of temperature
 
double recipT = 1.0
 inverse of temperature
 

Protected Attributes

double m_pressure_buf = -1.0
 
- Protected Attributes inherited from ReactionData
double m_temperature_buf = -1.0
 buffered temperature
 

Constructor & Destructor Documentation

◆ LinearBurkeData()

Definition at line 14 of file LinearBurkeRate.cpp.

Member Function Documentation

◆ update() [1/6]

void update ( double  T,
double  extra 
)
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 27 of file LinearBurkeRate.h.

◆ update() [2/6]

bool update ( const ThermoPhase phase,
const Kinetics kin 
)
overridevirtual

Update data container based on thermodynamic phase state.

This update mechanism is used by Kinetics reaction rate evaluators.

Returns
A boolean element indicating whether the evalFromStruct method needs to be called (assuming previously-calculated values were cached)

Implements ReactionData.

Definition at line 19 of file LinearBurkeRate.cpp.

◆ perturbPressure()

void perturbPressure ( double  deltaP)

Perturb pressure of data container.

The method is used for the evaluation of numerical derivatives.

Parameters
deltaPrelative pressure perturbation

Definition at line 38 of file LinearBurkeRate.cpp.

◆ restore()

void restore ( )
overridevirtual

Restore data container after a perturbation.

Reimplemented from ReactionData.

Definition at line 48 of file LinearBurkeRate.cpp.

◆ resize()

virtual void resize ( size_t  nSpecies,
size_t  nReactions,
size_t  nPhases 
)
inlineoverridevirtual

Update number of species, reactions and phases.

Reimplemented from ReactionData.

Definition at line 47 of file LinearBurkeRate.h.

◆ invalidateCache()

void invalidateCache ( )
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 53 of file LinearBurkeRate.h.

◆ update() [3/6]

virtual void update ( double  T)
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 38 of file ReactionData.h.

◆ update() [4/6]

virtual void update ( double  T,
double  extra 
)
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 50 of file ReactionData.h.

◆ update() [5/6]

virtual void update ( double  T,
const vector< double > &  extra 
)
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.

Warning
This method is an experimental part of the Cantera API and may be changed or removed without notice.

Reimplemented from ReactionData.

Definition at line 64 of file ReactionData.h.

◆ update() [6/6]

virtual bool update ( const ThermoPhase phase,
const Kinetics kin 
)
virtual

Update data container based on thermodynamic phase state.

This update mechanism is used by Kinetics reaction rate evaluators.

Returns
A boolean element indicating whether the evalFromStruct method needs to be called (assuming previously-calculated values were cached)

Implements ReactionData.

Member Data Documentation

◆ pressure

double pressure = NAN

Pressure.

Definition at line 59 of file LinearBurkeRate.h.

◆ logP

double logP = 0.0

Logarithm of pressure.

Definition at line 60 of file LinearBurkeRate.h.

◆ ready

bool ready = false

Boolean indicating whether vectors are accessible.

Definition at line 61 of file LinearBurkeRate.h.

◆ moleFractions

vector<double> moleFractions

Definition at line 62 of file LinearBurkeRate.h.

◆ mf_number

int mf_number

Definition at line 63 of file LinearBurkeRate.h.

◆ m_pressure_buf

double m_pressure_buf = -1.0
protected

Definition at line 66 of file LinearBurkeRate.h.


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