32 #ifndef ANTIOCH_WILKE_MIXTURE_H
33 #define ANTIOCH_WILKE_MIXTURE_H
46 template <
typename CoeffType>
47 class ChemicalMixture;
50 template<
class CoeffType =
double>
59 const unsigned int s )
const;
62 const unsigned int s )
const;
78 std::vector<std::vector<CoeffType> >
_denom;
83 template<
class CoeffType>
86 _Mr_Ms_to_the_one_fourth(mixture.n_species()),
87 _denom(mixture.n_species())
92 for(
unsigned int r = 0; r < mixture.
n_species(); r++ )
97 for(
unsigned int s = 0; s < mixture.
n_species(); s++ )
103 _denom[r][s] = std::sqrt(8.0*(1.0+Ms/Mr));
110 template<
class CoeffType>
116 template<
class CoeffType>
119 const unsigned int s )
const
121 return _Mr_Ms_to_the_one_fourth[r][s];
125 template<
class CoeffType>
128 const unsigned int s )
const
133 template<
class CoeffType>
140 template<
class CoeffType>
149 #endif // ANTIOCH_WILKE_MIXTURE_H
const ChemicalMixture< CoeffType > & chem_mixture() const
chemical mixture, mostly for backward compatibility
const ChemicalMixture< CoeffType > & chemical_mixture() const
method to send this back
CoeffType denominator(const unsigned int r, const unsigned int s) const
Antioch::enable_if_c< Antioch::is_valarray< T >::value, typename Antioch::state_type< T >::type >::type pow(const T &in, const T2 &n)
unsigned int n_species() const
Returns the number of species in this mixture.
const ChemicalMixture< CoeffType > & _mixture
#define antioch_deprecated()
std::vector< std::vector< CoeffType > > _Mr_Ms_to_the_one_fourth
Cache for numerator term.
CoeffType Mr_Ms_to_the_one_fourth(const unsigned int r, const unsigned int s) const
Class storing chemical mixture properties.
The parameters are reduced parameters.
const ChemicalMixture< CoeffType > & transport_mixture() const
chemical mixture, for backward compatibility
std::vector< std::vector< CoeffType > > _denom
Cache for denominator term.
WilkeMixture(const ChemicalMixture< CoeffType > &mixture)