antioch-0.4.0
|
Container class for species viscosities. More...
#include <blottner_parsing.h>
Public Types | |
typedef Viscosity | species_viscosity_type |
Public Member Functions | |
MixtureViscosity (const TransportMixture< CoeffType > &transport_mixture) | |
~MixtureViscosity () | |
template<typename StateType > | |
StateType | operator() (const unsigned int s, const StateType &T) const |
Evaluate viscosity for species s. More... | |
void | add (const std::string &species_name, const std::vector< CoeffType > &coeffs) |
Add species viscosity. More... | |
void | reset_coeffs (const unsigned int s, const std::vector< CoeffType > coeffs) |
Reset model coefficients for viscosity model of species s. More... | |
template<typename StateType > | |
void | extrapolate_max_temp (const StateType &Tmax) |
Extrapolate to input maximum temperature, given in [K]. More... | |
const std::vector< Viscosity * > & | species_viscosities () const |
void | print (std::ostream &os=std::cout) const |
Formatted print, by default to std::cout . More... | |
const ChemicalMixture < CoeffType > & | chemical_mixture () const |
const TransportMixture < CoeffType > & | transport_mixture () const |
const TransportMixture < CoeffType > & | mixture () const |
Protected Attributes | |
std::vector < SpeciesViscosityBase < Viscosity, CoeffType > * > | _species_viscosities |
const TransportMixture < CoeffType > & | _transport_mixture |
Private Member Functions | |
MixtureViscosity () | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const MixtureViscosity &mu) |
Formatted print. More... | |
Container class for species viscosities.
For the given set of chemical species in the input TransportMixture, this contains all the viscosities for each of those species and provides and interface for computing the species viscosity. Total viscosity is computed by a mixing model, e.g. MixtureAveragedTransportMixture. This class is templated on the viscosity model, so an inherent assumption is that all species viscosities have the same model.
Definition at line 41 of file blottner_parsing.h.
typedef Viscosity Antioch::MixtureViscosity< Viscosity, CoeffType >::species_viscosity_type |
Definition at line 93 of file mixture_viscosity.h.
Antioch::MixtureViscosity< Viscosity, CoeffType >::MixtureViscosity | ( | const TransportMixture< CoeffType > & | transport_mixture | ) |
Definition at line 106 of file mixture_viscosity.h.
Antioch::MixtureViscosity< Viscosity, CoeffType >::~MixtureViscosity | ( | ) |
Definition at line 112 of file mixture_viscosity.h.
|
private |
void Antioch::MixtureViscosity< Viscosity, CoeffType >::add | ( | const std::string & | species_name, |
const std::vector< CoeffType > & | coeffs | ||
) |
Add species viscosity.
Definition at line 123 of file mixture_viscosity.h.
References antioch_assert, and antioch_assert_less_equal.
|
inlineinherited |
Definition at line 68 of file mixture_transport_base.h.
|
inline |
Extrapolate to input maximum temperature, given in [K].
For certain species viscosity models, interpolation of various quantities may be done based on the temperature. This method will use linear extrapolation to extend the range of temperature for all the species viscosity models.
Definition at line 160 of file mixture_viscosity.h.
|
inlineinherited |
Definition at line 82 of file mixture_transport_base.h.
|
inline |
Evaluate viscosity for species s.
Total viscosity computed by mixing model, e.g. MixtureAveragedTransportEvaluator
Definition at line 148 of file mixture_viscosity.h.
References antioch_assert, and antioch_assert_less_equal.
void Antioch::MixtureViscosity< Viscosity, CoeffType >::print | ( | std::ostream & | os = std::cout | ) | const |
Formatted print, by default to std::cout
.
Definition at line 177 of file mixture_viscosity.h.
References antioch_assert_equal_to.
void Antioch::MixtureViscosity< Viscosity, CoeffType >::reset_coeffs | ( | const unsigned int | s, |
const std::vector< CoeffType > | coeffs | ||
) |
Reset model coefficients for viscosity model of species s.
Definition at line 139 of file mixture_viscosity.h.
|
inline |
Definition at line 171 of file mixture_viscosity.h.
|
inlineinherited |
Definition at line 75 of file mixture_transport_base.h.
|
friend |
Formatted print.
Definition at line 87 of file mixture_viscosity.h.
|
protected |
Definition at line 97 of file mixture_viscosity.h.
|
protectedinherited |
Definition at line 53 of file mixture_transport_base.h.
Referenced by Antioch::MixtureDiffusion< Antioch::ConstantLewisDiffusivity< CoeffType >, CoeffType >::private_init_impl().