antioch-0.4.0
List of all members | Public Member Functions | Private Member Functions | Private Attributes
Antioch::KineticsConditions< StateType, VectorStateType > Class Template Reference

This class contains the conditions of the chemistry. More...

#include <kinetics_conditions.h>

Public Member Functions

 KineticsConditions (const StateType &temperature)
 
 ~KineticsConditions ()
 
void add_particle_flux (const ParticleFlux< VectorStateType > &pf, unsigned int nr)
 
const StateType & T () const
 
const StateType & Tvib () const
 returns the temperature T, More...
 
const TempCache< StateType > & temp_cache () const
 
const ParticleFlux
< VectorStateType > & 
particle_flux (int nr) const
 

Private Member Functions

 KineticsConditions ()
 

Private Attributes

TempCache< StateType > _temperature
 
std::map< unsigned int,
ParticleFlux< VectorStateType >
const *const > 
_map_pf
 

Detailed Description

template<typename StateType, typename VectorStateType = std::vector<StateType>>
class Antioch::KineticsConditions< StateType, VectorStateType >

This class contains the conditions of the chemistry.

Conditions are:

Pressure is given by the molecular composition of the mixture, we are in a gaz phase, so the state equation will give pressure (typically ideal gas).

The idea is to avoid any copy of anything as much as we can, we store pointers but deal only with references. Nothing belongs to this object, if there is any cleaning to do, it must be done elsewhere.

Might be interesting to see about the "double" case for temperature: faster to copy instead of copying the reference, and it's expected to be the classic case.

Definition at line 64 of file kinetics_conditions.h.

Constructor & Destructor Documentation

template<typename StateType , typename VectorStateType >
Antioch::KineticsConditions< StateType, VectorStateType >::KineticsConditions ( const StateType &  temperature)
inline

Definition at line 98 of file kinetics_conditions.h.

98  :
99  _temperature(temperature)
100  {
101  return;
102  }
TempCache< StateType > _temperature
template<typename StateType , typename VectorStateType >
Antioch::KineticsConditions< StateType, VectorStateType >::~KineticsConditions ( )
inline

Definition at line 106 of file kinetics_conditions.h.

107  {
108  return;
109  }
template<typename StateType, typename VectorStateType = std::vector<StateType>>
Antioch::KineticsConditions< StateType, VectorStateType >::KineticsConditions ( )
private

Member Function Documentation

template<typename StateType , typename VectorStateType >
void Antioch::KineticsConditions< StateType, VectorStateType >::add_particle_flux ( const ParticleFlux< VectorStateType > &  pf,
unsigned int  nr 
)
inline

Definition at line 113 of file kinetics_conditions.h.

Referenced by tester().

114  {
115  _map_pf.insert(std::make_pair(nr, &pf));
116  }
std::map< unsigned int, ParticleFlux< VectorStateType > const *const > _map_pf
template<typename StateType , typename VectorStateType >
const ParticleFlux< VectorStateType > & Antioch::KineticsConditions< StateType, VectorStateType >::particle_flux ( int  nr) const
inline

Definition at line 134 of file kinetics_conditions.h.

References antioch_assert.

Referenced by Antioch::KineticsType< CoeffType, VectorCoeffType >::compute_rate_and_derivative(), Antioch::KineticsType< CoeffType, VectorCoeffType >::derivative(), and Antioch::KineticsType< CoeffType, VectorCoeffType >::operator()().

135  {
136  antioch_assert(_map_pf.count(nr));
137  return *(_map_pf.at(nr));
138  }
#define antioch_assert(asserted)
std::map< unsigned int, ParticleFlux< VectorStateType > const *const > _map_pf
template<typename StateType , typename VectorStateType >
const StateType & Antioch::KineticsConditions< StateType, VectorStateType >::T ( ) const
inline
template<typename StateType , typename VectorStateType >
const TempCache< StateType > & Antioch::KineticsConditions< StateType, VectorStateType >::temp_cache ( ) const
inline

Definition at line 142 of file kinetics_conditions.h.

143  {
144  return _temperature;
145  }
TempCache< StateType > _temperature
template<typename StateType , typename VectorStateType >
const StateType & Antioch::KineticsConditions< StateType, VectorStateType >::Tvib ( ) const
inline

returns the temperature T,

Definition at line 127 of file kinetics_conditions.h.

128  {
129  return _temperature.T;
130  }
TempCache< StateType > _temperature

Member Data Documentation

template<typename StateType, typename VectorStateType = std::vector<StateType>>
std::map<unsigned int,ParticleFlux<VectorStateType> const * const > Antioch::KineticsConditions< StateType, VectorStateType >::_map_pf
private

Definition at line 91 of file kinetics_conditions.h.

template<typename StateType, typename VectorStateType = std::vector<StateType>>
TempCache<StateType> Antioch::KineticsConditions< StateType, VectorStateType >::_temperature
private

Definition at line 88 of file kinetics_conditions.h.


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

Generated on Thu Jul 7 2016 11:09:49 for antioch-0.4.0 by  doxygen 1.8.8