OGS
|
A simplistic soil characteristics function.
This property must be a medium property. It computes the saturation of the wetting phase as function of capillary pressure.
The capillary pressure-saturation relationship given by \(S_{eff}=1-\left(\frac{p_{c}}{p_{c}^{max}}\right)^{\lambda}\), where \(\lambda\) is an exponent, \(p_{c}\) is capillary pressure, \(p_{c}^{max}\) is the maximum capillary pressure at which \(S_{eff}=0\).
This property can mainly be used for testing. If the exponent is set to 1, the characteristic curve shows a linear dependence.
Reference capillary pressure at which \(S_{eff}=0\).
Definition at line 38 of file SaturationExponential.h.
#include <SaturationExponential.h>
Public Member Functions | |
SaturationExponential (std::string name, const double residual_liquid_saturation, const double residual_gas_saturation, const double p_cap_max, const double exponent) | |
void | checkScale () const override |
PropertyDataType | value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &, double const, double const) const override |
PropertyDataType | dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &, double const, double const) const override |
PropertyDataType | d2Value (VariableArray const &variable_array, Variable const, Variable const, ParameterLib::SpatialPosition const &, double const, double const) const override |
Default implementation: 2nd derivative of any constant property is zero. | |
Public Member Functions inherited from MaterialPropertyLib::Property | |
virtual | ~Property () |
virtual PropertyDataType | initialValue (ParameterLib::SpatialPosition const &pos, double const t) const |
virtual PropertyDataType | value () const |
virtual PropertyDataType | value (VariableArray const &variable_array, VariableArray const &variable_array_prev, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
virtual PropertyDataType | dValue (VariableArray const &variable_array, VariableArray const &variable_array_prev, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
virtual void | setProperties (std::vector< std::unique_ptr< Phase > > const &phases) |
Default implementation: | |
void | setScale (std::variant< Medium *, Phase *, Component * > scale) |
template<typename T > | |
T | initialValue (ParameterLib::SpatialPosition const &pos, double const t) const |
template<typename T > | |
T | value () const |
template<typename T > | |
T | value (VariableArray const &variable_array, VariableArray const &variable_array_prev, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | dValue (VariableArray const &variable_array, VariableArray const &variable_array_prev, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | d2Value (VariableArray const &variable_array, Variable const &variable1, Variable const &variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
Private Attributes | |
const double | residual_liquid_saturation_ |
Residual saturation of the gas phase. | |
const double | residual_gas_saturation_ |
Residual saturation of the liquid phase. | |
const double | p_cap_max_ |
const double | exponent_ |
Exponent to govern the shape of the curve. | |
Additional Inherited Members | |
Protected Attributes inherited from MaterialPropertyLib::Property | |
std::string | name_ |
PropertyDataType | value_ |
The single value of a property. | |
PropertyDataType | dvalue_ |
std::variant< Medium *, Phase *, Component * > | scale_ |
MaterialPropertyLib::SaturationExponential::SaturationExponential | ( | std::string | name, |
const double | residual_liquid_saturation, | ||
const double | residual_gas_saturation, | ||
const double | p_cap_max, | ||
const double | exponent ) |
Definition at line 24 of file SaturationExponential.cpp.
References MaterialPropertyLib::name, MaterialPropertyLib::Property::name_, OGS_FATAL, and p_cap_max_.
|
inlineoverridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 55 of file SaturationExponential.h.
References OGS_FATAL, and MaterialPropertyLib::Property::scale_.
|
overridevirtual |
Default implementation: 2nd derivative of any constant property is zero.
This virtual method will compute the second derivative of a property with respect to the given variables pv1 and pv2.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 84 of file SaturationExponential.cpp.
References OGS_FATAL.
|
overridevirtual |
This virtual method will compute the property derivative value based on the variables that are passed as arguments with the default implementation using empty variables array for the previous time step.
The default implementation of this method only returns the property value derivative without altering it.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 59 of file SaturationExponential.cpp.
References MaterialPropertyLib::capillary_pressure, MaterialPropertyLib::VariableArray::capillary_pressure, exponent_, OGS_FATAL, p_cap_max_, residual_gas_saturation_, and residual_liquid_saturation_.
|
overridevirtual |
This virtual method will compute the property value based on the variables that are passed as arguments with the default implementation using empty variables array for the previous time step.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 44 of file SaturationExponential.cpp.
References MaterialPropertyLib::VariableArray::capillary_pressure, exponent_, p_cap_max_, residual_gas_saturation_, and residual_liquid_saturation_.
|
private |
Exponent to govern the shape of the curve.
Definition at line 47 of file SaturationExponential.h.
|
private |
Maximum capillary pressure at which effective saturation is zero.
Definition at line 45 of file SaturationExponential.h.
Referenced by SaturationExponential(), dValue(), and value().
|
private |
Residual saturation of the liquid phase.
Definition at line 44 of file SaturationExponential.h.
|
private |
Residual saturation of the gas phase.
Definition at line 42 of file SaturationExponential.h.