OGS
|
Linear temperature dependent density model.
Definition at line 26 of file LinearTemperatureDependentDensity.h.
#include <LinearTemperatureDependentDensity.h>
Public Member Functions | |
LinearTemperatureDependentDensity (const double rho0, double T0, const double beta) | |
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 | _rho0 |
Reference density. | |
const double | _temperature0 |
Reference temperature. | |
const double | _beta |
Parameter. | |
Additional Inherited Members | |
Public Types inherited from MaterialLib::Fluid::FluidProperty | |
using | ArrayType = std::array<double, PropertyVariableNumber> |
|
inlineexplicit |
rho0 | \( \rho_0 \) |
T0 | \( T_0 \) |
beta | \( \beta \) |
Definition at line 34 of file LinearTemperatureDependentDensity.h.
|
inlineoverridevirtual |
Get the partial differential of the density 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 59 of file LinearTemperatureDependentDensity.h.
References _beta, _rho0, and MaterialLib::Fluid::T.
|
inlineoverridevirtual |
Get model name.
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 41 of file LinearTemperatureDependentDensity.h.
|
inlineoverridevirtual |
Get density 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 49 of file LinearTemperatureDependentDensity.h.
References _beta, _rho0, _temperature0, and MaterialLib::Fluid::T.
|
private |
Parameter.
Definition at line 73 of file LinearTemperatureDependentDensity.h.
Referenced by getdValue(), and getValue().
|
private |
Reference density.
Definition at line 71 of file LinearTemperatureDependentDensity.h.
Referenced by getdValue(), and getValue().
|
private |
Reference temperature.
Definition at line 72 of file LinearTemperatureDependentDensity.h.
Referenced by getValue().