32 #ifndef ANTIOCH_WILKE_TRANSPORT_MIXTURE_H
33 #define ANTIOCH_WILKE_TRANSPORT_MIXTURE_H
41 template <
typename CoeffType>
42 class ChemicalMixture;
44 template <
typename CoeffType>
45 class TransportMixture;
58 template<
class CoeffType =
double>
69 const unsigned int s )
const;
73 const unsigned int s )
const;
91 std::vector<std::vector<CoeffType> >
_denom;
95 template<
class CoeffType>
98 _Mr_Ms_to_the_one_fourth(mixture.n_species()),
99 _denom(mixture.n_species())
103 for(
unsigned int r = 0; r < mixture.
n_species(); r++ )
108 for(
unsigned int s = 0; s < mixture.
n_species(); s++ )
114 _denom[r][s] = std::sqrt(8.0*(1.0+Ms/Mr));
119 template<
class CoeffType>
122 const unsigned int s )
const
124 return _Mr_Ms_to_the_one_fourth[r][s];
128 template<
class CoeffType>
131 const unsigned int s )
const
136 template<
class CoeffType>
140 return _mixture.chemical_mixture();
143 template<
class CoeffType>
152 #endif // ANTIOCH_WILKE_TRANSPORT_MIXTURE_H
const ChemicalMixture< CoeffType > & chemical_mixture() const
const ChemicalMixture< CoeffType > & chem_mixture() const
chemical mixture, mostly for backward compatibility
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)
~MixtureAveragedTransportMixture()
Class storing chemical mixture properties.
CoeffType Mr_Ms_to_the_one_fourth(const unsigned int r, const unsigned int s) const
const TransportMixture< CoeffType > & _mixture
MixtureAveragedTransportMixture(const TransportMixture< CoeffType > &mixture)
const TransportMixture< CoeffType > & transport_mixture() const
transport mixture
Class storing chemical mixture properties.
unsigned int n_species() const
ChemicalMixture method.
std::vector< std::vector< CoeffType > > _denom
Cache for denominator term.
The parameters are reduced parameters.
std::vector< std::vector< CoeffType > > _Mr_Ms_to_the_one_fourth
Cache for numerator term.
Mixture object for MixtureAveragedTransport model.