OGS
CapillaryPressureVanGenuchten.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
class
Phase;
20
class
Component
;
21
42
class
CapillaryPressureVanGenuchten
:
public
Property
43
{
44
public
:
45
CapillaryPressureVanGenuchten
(std::string
name
,
46
double
const
residual_liquid_saturation
,
47
double
const
residual_gas_saturation
,
48
double
const
exponent,
49
double
const
p_b,
50
double
const
maximum_capillary_pressure);
51
52
void
checkScale
()
const override
53
{
54
if
(!std::holds_alternative<Medium*>(
scale_
))
55
{
56
OGS_FATAL
(
57
"The property 'CapillaryPressureVanGenuchten' is implemented "
58
"on the 'media' scale only."
);
59
}
60
}
61
63
PropertyDataType
value
(
VariableArray
const
& variable_array,
64
ParameterLib::SpatialPosition
const
& pos,
65
double
const
t,
66
double
const
dt)
const override
;
67
69
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
70
Variable
const
variable,
71
ParameterLib::SpatialPosition
const
& pos,
72
double
const
t,
73
double
const
dt)
const override
;
74
75
private
:
76
double
const
S_L_res_
;
77
double
const
S_L_max_
;
78
double
const
m_
;
79
double
const
p_b_
;
80
double
const
p_cap_max_
;
81
};
82
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
MaterialPropertyLib::CapillaryPressureVanGenuchten
The van Genuchten capillary pressure model.
Definition
CapillaryPressureVanGenuchten.h:43
MaterialPropertyLib::CapillaryPressureVanGenuchten::checkScale
void checkScale() const override
Definition
CapillaryPressureVanGenuchten.h:52
MaterialPropertyLib::CapillaryPressureVanGenuchten::m_
double const m_
Exponent.
Definition
CapillaryPressureVanGenuchten.h:78
MaterialPropertyLib::CapillaryPressureVanGenuchten::S_L_res_
double const S_L_res_
Residual saturation of liquid phase.
Definition
CapillaryPressureVanGenuchten.h:76
MaterialPropertyLib::CapillaryPressureVanGenuchten::p_b_
double const p_b_
Pressure scaling factor.
Definition
CapillaryPressureVanGenuchten.h:79
MaterialPropertyLib::CapillaryPressureVanGenuchten::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
CapillaryPressureVanGenuchten.cpp:109
MaterialPropertyLib::CapillaryPressureVanGenuchten::S_L_max_
double const S_L_max_
Maximum saturation of liquid phase.
Definition
CapillaryPressureVanGenuchten.h:77
MaterialPropertyLib::CapillaryPressureVanGenuchten::p_cap_max_
double const p_cap_max_
Maximum capillary pressure.
Definition
CapillaryPressureVanGenuchten.h:80
MaterialPropertyLib::CapillaryPressureVanGenuchten::CapillaryPressureVanGenuchten
CapillaryPressureVanGenuchten(std::string name, double const residual_liquid_saturation, double const residual_gas_saturation, double const exponent, double const p_b, double const maximum_capillary_pressure)
Definition
CapillaryPressureVanGenuchten.cpp:21
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:99
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
ChemistryLib::PhreeqcIOData::ItemType::Component
@ Component
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::name
@ name
Definition
PropertyType.h:66
MaterialPropertyLib::residual_liquid_saturation
@ residual_liquid_saturation
Definition
PropertyType.h:81
MaterialPropertyLib::residual_gas_saturation
@ residual_gas_saturation
Definition
PropertyType.h:80
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
CapillaryPressureVanGenuchten.h
Generated by
1.11.0