OGS
|
Linear concentration dependent density model.
\[ \varrho = \varrho_{\text{ref}} (1 + \bar \alpha (C - C_{\text{ref}})) \]
where
Definition at line 28 of file LinearConcentrationDependentDensity.h.
#include <LinearConcentrationDependentDensity.h>
Public Member Functions | |
LinearConcentrationDependentDensity (const double reference_density, double reference_concentration, const double fluid_density_difference_ratio) | |
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 | _reference_density |
const double | _reference_concentration |
const double | _fluid_density_difference_ratio |
Additional Inherited Members | |
Public Types inherited from MaterialLib::Fluid::FluidProperty | |
using | ArrayType = std::array<double, PropertyVariableNumber> |
|
inlineexplicit |
reference_density | \(\rho_0\) |
reference_concentration | \(C_0\) |
fluid_density_difference_ratio | \( \bar \alpha \) in reference Coupled groundwater flow and transport: 2. Thermohaline and 3D convection systems |
Definition at line 38 of file LinearConcentrationDependentDensity.h.
|
inlineoverridevirtual |
Get the partial differential of the density with respect to concentration.
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 69 of file LinearConcentrationDependentDensity.h.
References _fluid_density_difference_ratio, _reference_density, and MaterialLib::Fluid::C.
|
inlineoverridevirtual |
Get model name.
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 48 of file LinearConcentrationDependentDensity.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 56 of file LinearConcentrationDependentDensity.h.
References _fluid_density_difference_ratio, _reference_concentration, _reference_density, and MaterialLib::Fluid::C.
|
private |
Definition at line 83 of file LinearConcentrationDependentDensity.h.
Referenced by getdValue(), and getValue().
|
private |
Definition at line 82 of file LinearConcentrationDependentDensity.h.
Referenced by getValue().
|
private |
Definition at line 81 of file LinearConcentrationDependentDensity.h.
Referenced by getdValue(), and getValue().