antioch-0.4.0
|
Base class for species viscosity models. More...
#include <species_viscosity_base.h>
Public Member Functions | |
SpeciesViscosityBase () | |
virtual | ~SpeciesViscosityBase () |
template<typename StateType > | |
StateType | operator() (const StateType &T) const |
Evaluates viscosity at temperature T. More... | |
template<typename StateType > | |
void | extrapolate_max_temp (const StateType &Tmax) |
Extrapolate to input maximum temperature, given in [K]. More... | |
void | reset_coeffs (const std::vector< CoeffType > &coeffs) |
Resets coefficients associated with the viscosity model. More... | |
void | print (std::ostream &os=std::cout) const |
Formatted print, by default to std::cout . More... | |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SpeciesViscosityBase< Subclass, CoeffType > &mu) |
Formatted print. More... | |
Base class for species viscosity models.
We use the curiously recurring template pattern to enforce the interface that subclasses must adhere in order to ulimately be used in the MixtureViscosity class. Subclasses must implement:
Definition at line 46 of file species_viscosity_base.h.
|
inline |
Definition at line 50 of file species_viscosity_base.h.
|
inlinevirtual |
Definition at line 52 of file species_viscosity_base.h.
|
inline |
Extrapolate to input maximum temperature, given in [K].
Some species viscosity models, e.g. KineticsTheoryViscosity, use interpolated quantities for a given temperature range. If the viscosity is to be evaluated outside that range, an error will occur. This method will reconstruct the interpolation table, but use a linear extrapolation from the max in the existing table to the input maximum temperature.
This method is only applicable to a subset of species viscosity models. Others will throw a runtime error.
Definition at line 97 of file species_viscosity_base.h.
|
inline |
Evaluates viscosity at temperature T.
Definition at line 89 of file species_viscosity_base.h.
void Antioch::SpeciesViscosityBase< Subclass, CoeffType >::print | ( | std::ostream & | os = std::cout | ) | const |
Formatted print, by default to std::cout
.
Definition at line 109 of file species_viscosity_base.h.
void Antioch::SpeciesViscosityBase< Subclass, CoeffType >::reset_coeffs | ( | const std::vector< CoeffType > & | coeffs | ) |
Resets coefficients associated with the viscosity model.
Definition at line 103 of file species_viscosity_base.h.
|
friend |
Formatted print.
Definition at line 79 of file species_viscosity_base.h.