27 #ifndef ANTIOCH_SPECIES_VISCOSITY_BASE_H
28 #define ANTIOCH_SPECIES_VISCOSITY_BASE_H
45 template<
typename Sub
class,
typename CoeffType>
55 template <
typename StateType>
56 StateType
operator()(
const StateType& T )
const;
69 template <
typename StateType>
73 void reset_coeffs(
const std::vector<CoeffType>& coeffs );
76 void print(std::ostream& os = std::cout)
const;
79 friend std::ostream& operator<<(std::ostream& os, const SpeciesViscosityBase<Subclass,CoeffType>& mu)
86 template<
typename Sub
class,
typename CoeffType>
87 template <
typename StateType>
91 return static_cast<const Subclass*
>(
this)->op_impl(T);
94 template<
typename Sub
class,
typename CoeffType>
95 template <
typename StateType>
99 return static_cast<Subclass*
>(
this)->extrapolate_max_temp_impl(Tmax);
102 template<
typename Sub
class,
typename CoeffType>
105 static_cast<Subclass*
>(
this)->reset_coeffs_impl(coeffs);
108 template<
typename Sub
class,
typename CoeffType>
111 static_cast<const Subclass*
>(
this)->print_impl(os);
116 #endif // ANTIOCH_SPECIES_VISCOSITY_BASE_H
Base class for species viscosity models.
virtual ~SpeciesViscosityBase()
StateType operator()(const StateType &T) const
Evaluates viscosity at temperature T.
void reset_coeffs(const std::vector< CoeffType > &coeffs)
Resets coefficients associated with the viscosity model.
void print(std::ostream &os=std::cout) const
Formatted print, by default to std::cout.
The parameters are reduced parameters.
void extrapolate_max_temp(const StateType &Tmax)
Extrapolate to input maximum temperature, given in [K].