OGS
|
Class of a temperature dependent viscosity model, which provides a good fit over temperature variations of 150 K.
\[ \mu = \mu_0\, \exp(-\frac{T-T_c}{T_v}) \]
where
\begin{eqnarray*} &\mu_0:& \mbox{reference viscosity at the temperature of} T_c\\ &T:& \mbox{temperature,}\\ &T_c:& \mbox{reference temperature,}\\ &T_v:& \mbox{constant}\\ \end{eqnarray*}
Definition at line 41 of file TemperatureDependentViscosity.h.
#include <TemperatureDependentViscosity.h>
Public Member Functions | |
TemperatureDependentViscosity (const double mu0, const double T_c, const double T_v) | |
std::string | getName () const override |
Get model name. | |
double | getValue (const ArrayType &var_vals) const override |
double | getdValue (const ArrayType &var_vals, const PropertyVariableType var) const override |
Public Member Functions inherited from MaterialLib::Fluid::FluidProperty | |
virtual | ~FluidProperty ()=default |
Private Attributes | |
const double | _mu0 |
Initial viscosity. | |
const double | _temperature_c |
Reference temperature 1. | |
const double | _temperature_v |
Reference temperature 2. | |
Additional Inherited Members | |
Public Types inherited from MaterialLib::Fluid::FluidProperty | |
using | ArrayType = std::array<double, PropertyVariableNumber> |
|
inlineexplicit |
mu0 | \( \mu_0 \) |
T_c | \( T_c \) |
T_v | \( T_v \) |
Definition at line 49 of file TemperatureDependentViscosity.h.
|
inlineoverridevirtual |
Get the partial differential of the viscosity with respect to temperature.
var_vals | Variable values in an array. The order of its elements is given in enum class PropertyVariableType. |
var | Variable type. |
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 79 of file TemperatureDependentViscosity.h.
References _mu0, _temperature_c, _temperature_v, and MaterialLib::Fluid::T.
|
inlineoverridevirtual |
Get model name.
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 57 of file TemperatureDependentViscosity.h.
|
inlineoverridevirtual |
Get viscosity value.
var_vals | Variable values in an array. The order of its elements is given in enum class PropertyVariableType. |
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 66 of file TemperatureDependentViscosity.h.
References _mu0, _temperature_c, _temperature_v, and MaterialLib::Fluid::T.
|
private |
Initial viscosity.
Definition at line 89 of file TemperatureDependentViscosity.h.
Referenced by getdValue(), and getValue().
|
private |
Reference temperature 1.
Definition at line 90 of file TemperatureDependentViscosity.h.
Referenced by getdValue(), and getValue().
|
private |
Reference temperature 2.
Definition at line 91 of file TemperatureDependentViscosity.h.
Referenced by getdValue(), and getValue().