OGS
CapillaryPressureRegularizedVanGenuchten.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
MaterialLib/MPL/Property.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
class
Medium;
19
31
class
CapillaryPressureRegularizedVanGenuchten
final :
public
Property
32
{
33
public
:
34
CapillaryPressureRegularizedVanGenuchten
(
35
double
const
residual_liquid_saturation
,
36
double
const
maximum_liquid_saturation,
37
double
const
exponent,
38
double
const
p_b);
39
40
void
checkScale
()
const override
41
{
42
if
(!std::holds_alternative<Medium*>(
scale_
))
43
{
44
OGS_FATAL
(
45
"The property 'CapillaryPressureRegularizedVanGenuchten' is "
46
"implemented on the 'media' scale only."
);
47
}
48
}
49
51
PropertyDataType
value
(
VariableArray
const
& variable_array,
52
ParameterLib::SpatialPosition
const
& pos,
53
double
const
t,
54
double
const
dt)
const override
;
55
57
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
58
Variable
const
variable,
59
ParameterLib::SpatialPosition
const
& pos,
60
double
const
t,
61
double
const
dt)
const override
;
62
63
private
:
64
double
const
Sg_r_
;
65
double
const
Sg_max_
;
66
double
const
m_
;
69
double
const
p_b_
;
71
static
constexpr
double
xi_
= 1e-5;
72
73
double
const
PcBarvGSg_Sg_max_
;
74
double
const
dPcdSvGBarSg_max_
;
75
78
double
getPcBarvGSg
(
double
const
Sg)
const
;
81
double
getSBar
(
double
const
Sg)
const
;
84
double
getPcvGSg
(
double
const
Sg)
const
;
86
double
getdPcdSvGBar
(
double
const
Sg)
const
;
88
double
getdPcdSvG
(
double
const
Sg)
const
;
89
};
90
91
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten
This class handles the computation of the capillary pressure, , with the capillary pressure regulariz...
Definition
CapillaryPressureRegularizedVanGenuchten.h:32
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::xi_
static constexpr double xi_
parameter in regularized van Genuchten model
Definition
CapillaryPressureRegularizedVanGenuchten.h:71
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::m_
double const m_
Definition
CapillaryPressureRegularizedVanGenuchten.h:66
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::getdPcdSvG
double getdPcdSvG(double const Sg) const
Gets .
Definition
CapillaryPressureRegularizedVanGenuchten.cpp:125
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::PcBarvGSg_Sg_max_
double const PcBarvGSg_Sg_max_
Definition
CapillaryPressureRegularizedVanGenuchten.h:73
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
CapillaryPressureRegularizedVanGenuchten.cpp:70
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::Sg_r_
double const Sg_r_
Residual saturation of gas phase.
Definition
CapillaryPressureRegularizedVanGenuchten.h:64
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::Sg_max_
double const Sg_max_
Maximum saturation of gas phase.
Definition
CapillaryPressureRegularizedVanGenuchten.h:65
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::p_b_
double const p_b_
Definition
CapillaryPressureRegularizedVanGenuchten.h:69
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::getPcBarvGSg
double getPcBarvGSg(double const Sg) const
Definition
CapillaryPressureRegularizedVanGenuchten.cpp:99
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::getPcvGSg
double getPcvGSg(double const Sg) const
Definition
CapillaryPressureRegularizedVanGenuchten.cpp:111
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::getdPcdSvGBar
double getdPcdSvGBar(double const Sg) const
Gets .
Definition
CapillaryPressureRegularizedVanGenuchten.cpp:118
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::checkScale
void checkScale() const override
Definition
CapillaryPressureRegularizedVanGenuchten.h:40
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::getSBar
double getSBar(double const Sg) const
Definition
CapillaryPressureRegularizedVanGenuchten.cpp:106
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::CapillaryPressureRegularizedVanGenuchten
CapillaryPressureRegularizedVanGenuchten(double const residual_liquid_saturation, double const maximum_liquid_saturation, double const exponent, double const p_b)
Definition
CapillaryPressureRegularizedVanGenuchten.cpp:33
MaterialPropertyLib::CapillaryPressureRegularizedVanGenuchten::dPcdSvGBarSg_max_
double const dPcdSvGBarSg_max_
Definition
CapillaryPressureRegularizedVanGenuchten.h:74
MaterialPropertyLib::Property
Definition
Property.h:51
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::Property::scale_
std::variant< Medium *, Phase *, Component * > scale_
Definition
Property.h:297
MaterialPropertyLib::VariableArray
Definition
VariableType.h:97
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::residual_liquid_saturation
@ residual_liquid_saturation
Definition
PropertyType.h:81
MaterialPropertyLib::PropertyDataType
std::variant< double, Eigen::Matrix< double, 2, 1 >, Eigen::Matrix< double, 3, 1 >, Eigen::Matrix< double, 2, 2 >, Eigen::Matrix< double, 3, 3 >, Eigen::Matrix< double, 4, 1 >, Eigen::Matrix< double, 6, 1 >, Eigen::MatrixXd > PropertyDataType
Definition
Property.h:31
MaterialLib
MPL
Properties
CapillaryPressureSaturation
CapillaryPressureRegularizedVanGenuchten.h
Generated by
1.12.0