OGS
|
A simple relative permeability function proposed by Kent S GeneralizedPower [39].
Definition:
\[ k_{\text{rel}} =\text{multiplier} \left(1-S^{\text{eff}}\right)^{\text{exponent}}\]
where \(S^{\text{eff}}\) is the effective saturation of the non-wetting phase.
This class handles the non-wetting (gas) phase portion of this relative permeability property for the relative permeability function.
This property must be a medium property, it computes the permeability reduction due to saturation as function of capillary pressure.
Definition at line 37 of file RelPermGeneralizedPowerNonwettingPhase.h.
#include <RelPermGeneralizedPowerNonwettingPhase.h>
Public Member Functions | |
RelPermGeneralizedPowerNonwettingPhase (std::string name, const double residual_liquid_saturation, const double residual_gas_saturation, const double min_relative_permeability, const double a, const double lambda) | |
void | checkScale () const override |
PropertyDataType | value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
PropertyDataType | dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
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 PropertyDataType | d2Value (VariableArray const &variable_array, Variable const variable1, Variable const variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
Default implementation: 2nd derivative of any constant property is zero. | |
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_ |
const double | residual_gas_saturation_ |
const double | min_relative_permeability_ |
const double | a_ |
const double | lambda_ |
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::RelPermGeneralizedPowerNonwettingPhase::RelPermGeneralizedPowerNonwettingPhase | ( | std::string | name, |
const double | residual_liquid_saturation, | ||
const double | residual_gas_saturation, | ||
const double | min_relative_permeability, | ||
const double | a, | ||
const double | lambda ) |
Definition at line 19 of file RelPermGeneralizedPowerNonwettingPhase.cpp.
References MaterialPropertyLib::name, and MaterialPropertyLib::Property::name_.
|
inlineoverridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 55 of file RelPermGeneralizedPowerNonwettingPhase.h.
References OGS_FATAL, and MaterialPropertyLib::Property::scale_.
|
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 70 of file RelPermGeneralizedPowerNonwettingPhase.cpp.
References a_, lambda_, MaterialPropertyLib::liquid_saturation, MaterialPropertyLib::VariableArray::liquid_saturation, OGS_FATAL, 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 35 of file RelPermGeneralizedPowerNonwettingPhase.cpp.
References a_, lambda_, MaterialPropertyLib::VariableArray::liquid_saturation, min_relative_permeability_, OGS_FATAL, residual_gas_saturation_, and residual_liquid_saturation_.
|
private |
Definition at line 43 of file RelPermGeneralizedPowerNonwettingPhase.h.
|
private |
Definition at line 44 of file RelPermGeneralizedPowerNonwettingPhase.h.
|
private |
Definition at line 42 of file RelPermGeneralizedPowerNonwettingPhase.h.
Referenced by value().
|
private |
Definition at line 41 of file RelPermGeneralizedPowerNonwettingPhase.h.
|
private |
Definition at line 40 of file RelPermGeneralizedPowerNonwettingPhase.h.