OGS
RelPermNonWettingPhaseVanGenuchtenMualem.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include <limits>
15
16
#include "
BaseLib/ConfigTree-fwd.h
"
17
#include "
MaterialLib/MPL/Property.h
"
18
19
namespace
MaterialPropertyLib
20
{
21
class
Medium;
22
47
class
RelPermNonWettingPhaseVanGenuchtenMualem
final :
public
Property
48
{
49
public
:
60
RelPermNonWettingPhaseVanGenuchtenMualem
(std::string
name
,
61
const
double
S_L_r,
62
const
double
S_n_r,
63
const
double
m,
64
const
double
krel_min);
65
66
void
checkScale
()
const override
67
{
68
if
(!std::holds_alternative<Medium*>(
scale_
))
69
{
70
OGS_FATAL
(
71
"The property 'RelPermNonWettingPhaseVanGenuchtenMualem' is "
72
"implemented on the 'media' scale only."
);
73
}
74
}
75
77
PropertyDataType
value
(
VariableArray
const
& variable_array,
78
ParameterLib::SpatialPosition
const
& pos,
79
double
const
t,
double
const
dt)
const override
;
80
82
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
83
Variable
const
variable,
84
ParameterLib::SpatialPosition
const
& pos,
85
double
const
t,
double
const
dt)
const override
;
86
92
double
computeSaturationForMinimumRelativePermeability
()
const
;
93
94
private
:
95
const
double
S_L_r_
;
96
const
double
S_L_max_
;
97
const
double
m_
;
98
const
double
krel_min_
;
99
const
double
100
S_L_for_krel_min_
;
101
};
102
}
// namespace MaterialPropertyLib
ConfigTree-fwd.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
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::RelPermNonWettingPhaseVanGenuchtenMualem
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.h:48
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::checkScale
void checkScale() const override
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.h:66
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::S_L_for_krel_min_
const double S_L_for_krel_min_
Liquid saturation that gives krel_min_.
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.h:100
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::m_
const double m_
Exponent .
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.h:97
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::S_L_r_
const double S_L_r_
Residual saturation of wetting phase.
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.h:95
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::computeSaturationForMinimumRelativePermeability
double computeSaturationForMinimumRelativePermeability() const
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.cpp:96
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::RelPermNonWettingPhaseVanGenuchtenMualem
RelPermNonWettingPhaseVanGenuchtenMualem(std::string name, const double S_L_r, const double S_n_r, const double m, const double krel_min)
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.cpp:33
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::S_L_max_
const double S_L_max_
Maximum saturation of wetting phase.
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.h:96
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.cpp:61
MaterialPropertyLib::RelPermNonWettingPhaseVanGenuchtenMualem::krel_min_
const double krel_min_
Minimum relative permeability.
Definition
RelPermNonWettingPhaseVanGenuchtenMualem.h:98
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::name
@ name
Definition
PropertyType.h:66
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
RelativePermeability
RelPermNonWettingPhaseVanGenuchtenMualem.h
Generated by
1.10.0