antioch-0.4.0
List of all members | Public Member Functions | Protected Attributes
Antioch::WilkeMixture< CoeffType > Class Template Reference

#include <wilke_mixture.h>

Public Member Functions

 WilkeMixture (const ChemicalMixture< CoeffType > &mixture)
 
 ~WilkeMixture ()
 
CoeffType Mr_Ms_to_the_one_fourth (const unsigned int r, const unsigned int s) const
 
CoeffType denominator (const unsigned int r, const unsigned int s) const
 
const ChemicalMixture
< CoeffType > & 
chem_mixture () const
 chemical mixture, mostly for backward compatibility More...
 
const ChemicalMixture
< CoeffType > & 
transport_mixture () const
 chemical mixture, for backward compatibility More...
 

Protected Attributes

const ChemicalMixture
< CoeffType > & 
_mixture
 
std::vector< std::vector
< CoeffType > > 
_Mr_Ms_to_the_one_fourth
 Cache for numerator term. More...
 
std::vector< std::vector
< CoeffType > > 
_denom
 Cache for denominator term. More...
 

Detailed Description

template<class CoeffType = double>
class Antioch::WilkeMixture< CoeffType >

Definition at line 51 of file wilke_mixture.h.

Constructor & Destructor Documentation

template<class CoeffType >
Antioch::WilkeMixture< CoeffType >::WilkeMixture ( const ChemicalMixture< CoeffType > &  mixture)

Definition at line 84 of file wilke_mixture.h.

References Antioch::WilkeMixture< CoeffType >::_denom, Antioch::WilkeMixture< CoeffType >::_Mr_Ms_to_the_one_fourth, antioch_deprecated, Antioch::ChemicalMixture< CoeffType >::chemical_mixture(), Antioch::ChemicalMixture< CoeffType >::n_species(), and std::pow().

85  : _mixture(mixture),
86  _Mr_Ms_to_the_one_fourth(mixture.n_species()),
87  _denom(mixture.n_species())
88  {
90  using std::pow;
91 
92  for( unsigned int r = 0; r < mixture.n_species(); r++ )
93  {
94  _Mr_Ms_to_the_one_fourth[r].resize(mixture.n_species());
95  _denom[r].resize(mixture.n_species());
96 
97  for( unsigned int s = 0; s < mixture.n_species(); s++ )
98  {
99  const CoeffType Mr = mixture.chemical_mixture().M(r);
100  const CoeffType Ms = mixture.chemical_mixture().M(s);
101 
102  _Mr_Ms_to_the_one_fourth[r][s] = pow( Mr/Ms, CoeffType(0.25) );
103  _denom[r][s] = std::sqrt(8.0*(1.0+Ms/Mr));
104  }
105  }
106 
107  return;
108  }
Antioch::enable_if_c< Antioch::is_valarray< T >::value, typename Antioch::state_type< T >::type >::type pow(const T &in, const T2 &n)
const ChemicalMixture< CoeffType > & _mixture
Definition: wilke_mixture.h:72
#define antioch_deprecated()
std::vector< std::vector< CoeffType > > _Mr_Ms_to_the_one_fourth
Cache for numerator term.
Definition: wilke_mixture.h:75
std::vector< std::vector< CoeffType > > _denom
Cache for denominator term.
Definition: wilke_mixture.h:78
template<class CoeffType >
Antioch::WilkeMixture< CoeffType >::~WilkeMixture ( )

Definition at line 111 of file wilke_mixture.h.

112  {
113  return;
114  }

Member Function Documentation

template<class CoeffType >
const ChemicalMixture< CoeffType > & Antioch::WilkeMixture< CoeffType >::chem_mixture ( ) const
inline

chemical mixture, mostly for backward compatibility

Definition at line 135 of file wilke_mixture.h.

136  {
137  return _mixture;
138  }
const ChemicalMixture< CoeffType > & _mixture
Definition: wilke_mixture.h:72
template<class CoeffType >
CoeffType Antioch::WilkeMixture< CoeffType >::denominator ( const unsigned int  r,
const unsigned int  s 
) const
inline

Definition at line 127 of file wilke_mixture.h.

129  {
130  return _denom[r][s];
131  }
std::vector< std::vector< CoeffType > > _denom
Cache for denominator term.
Definition: wilke_mixture.h:78
template<class CoeffType >
CoeffType Antioch::WilkeMixture< CoeffType >::Mr_Ms_to_the_one_fourth ( const unsigned int  r,
const unsigned int  s 
) const
inline

Definition at line 118 of file wilke_mixture.h.

120  {
121  return _Mr_Ms_to_the_one_fourth[r][s];
122  }
std::vector< std::vector< CoeffType > > _Mr_Ms_to_the_one_fourth
Cache for numerator term.
Definition: wilke_mixture.h:75
template<class CoeffType >
const ChemicalMixture< CoeffType > & Antioch::WilkeMixture< CoeffType >::transport_mixture ( ) const
inline

chemical mixture, for backward compatibility

Definition at line 142 of file wilke_mixture.h.

143  {
144  return _mixture;
145  }
const ChemicalMixture< CoeffType > & _mixture
Definition: wilke_mixture.h:72

Member Data Documentation

template<class CoeffType = double>
std::vector<std::vector<CoeffType> > Antioch::WilkeMixture< CoeffType >::_denom
protected

Cache for denominator term.

Definition at line 78 of file wilke_mixture.h.

Referenced by Antioch::WilkeMixture< CoeffType >::WilkeMixture().

template<class CoeffType = double>
const ChemicalMixture<CoeffType>& Antioch::WilkeMixture< CoeffType >::_mixture
protected

Definition at line 72 of file wilke_mixture.h.

template<class CoeffType = double>
std::vector<std::vector<CoeffType> > Antioch::WilkeMixture< CoeffType >::_Mr_Ms_to_the_one_fourth
protected

Cache for numerator term.

Definition at line 75 of file wilke_mixture.h.

Referenced by Antioch::WilkeMixture< CoeffType >::WilkeMixture().


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

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