OGS
|
Linear concentration dependent density model.
\[ \varrho = \varrho_{\text{ref}} (1 + \bar \alpha (C - C_{\text{ref}}) + \bar \beta (p - p_{\text{ref}}) ) \]
where
Definition at line 30 of file LinearConcentrationAndPressureDependentDensity.h.
#include <LinearConcentrationAndPressureDependentDensity.h>
Public Member Functions | |
LinearConcentrationAndPressureDependentDensity (const double reference_density, double reference_concentration, const double fluid_density_concentration_difference_ratio, double reference_pressure, const double fluid_density_pressure_difference_ratio) | |
std::string | getName () const override |
Get model name. | |
double | getValue (const ArrayType &var_vals) const override |
double | getdValue (const ArrayType &, 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_concentration_difference_ratio |
const double | _reference_pressure |
const double | _fluid_density_pressure_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_concentration_difference_ratio | \( \bar \alpha \) in reference |
reference_pressure | \(p_0\) |
fluid_density_pressure_difference_ratio | \( \bar \beta \) in reference Coupled groundwater flow and transport: 2. Thermohaline and 3D convection systems |
Definition at line 44 of file LinearConcentrationAndPressureDependentDensity.h.
|
inlineoverridevirtual |
Get the partial differential of the density with respect to concentration or pressure.
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 82 of file LinearConcentrationAndPressureDependentDensity.h.
References _fluid_density_concentration_difference_ratio, _fluid_density_pressure_difference_ratio, _reference_density, MaterialLib::Fluid::C, and MaterialLib::Fluid::p.
|
inlineoverridevirtual |
Get model name.
Implements MaterialLib::Fluid::FluidProperty.
Definition at line 60 of file LinearConcentrationAndPressureDependentDensity.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 68 of file LinearConcentrationAndPressureDependentDensity.h.
References _fluid_density_concentration_difference_ratio, _fluid_density_pressure_difference_ratio, _reference_concentration, _reference_density, _reference_pressure, MaterialLib::Fluid::C, and MaterialLib::Fluid::p.
|
private |
Definition at line 101 of file LinearConcentrationAndPressureDependentDensity.h.
Referenced by getdValue(), and getValue().
|
private |
Definition at line 103 of file LinearConcentrationAndPressureDependentDensity.h.
Referenced by getdValue(), and getValue().
|
private |
Definition at line 100 of file LinearConcentrationAndPressureDependentDensity.h.
Referenced by getValue().
|
private |
Definition at line 99 of file LinearConcentrationAndPressureDependentDensity.h.
Referenced by getdValue(), and getValue().
|
private |
Definition at line 102 of file LinearConcentrationAndPressureDependentDensity.h.
Referenced by getValue().