OGS
|
Class of a linear pressure dependent viscosity model.
\[ \mu = \mu_0\,(1 + \gamma (p -p_0) ) \]
where
\begin{eqnarray*} &\mu_0:& \mbox{reference viscosity,}\\ &\gamma:& \mbox{parameter,}\\ &p:& \mbox{pressure,}\\ &p_0:& \mbox{initial pressure.}\\ \end{eqnarray*}
Definition at line 35 of file LinearPressureDependentViscosity.h.
#include <LinearPressureDependentViscosity.h>
Public Member Functions | |
LinearPressureDependentViscosity (const double mu0, const double p0, const double gamma) | |
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 |
Reference viscosity. | |
const double | _p0 |
Reference pressure. | |
const double | _gamma |
Parameter. | |
Additional Inherited Members | |
Public Types inherited from MaterialLib::Fluid::FluidProperty | |
using | ArrayType = std::array<double, PropertyVariableNumber> |
|
inlineexplicit |
mu0 | \( \mu_0 \) |
p0 | \( p_0 \) |
gamma | \( \gamma \) |
Definition at line 43 of file LinearPressureDependentViscosity.h.
|
inlineoverridevirtual |
Get the partial differential of the viscosity with respect to pressure.
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 71 of file LinearPressureDependentViscosity.h.
|
inlineoverridevirtual |
Get model name.
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 51 of file LinearPressureDependentViscosity.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 60 of file LinearPressureDependentViscosity.h.
References _gamma, _mu0, _p0, and MaterialLib::Fluid::p.
|
private |
Parameter.
Definition at line 82 of file LinearPressureDependentViscosity.h.
Referenced by getdValue(), and getValue().
|
private |
Reference viscosity.
Definition at line 80 of file LinearPressureDependentViscosity.h.
Referenced by getdValue(), and getValue().
|
private |
Reference pressure.
Definition at line 81 of file LinearPressureDependentViscosity.h.
Referenced by getValue().