OGS
RelPermBrooksCorey.h
Go to the documentation of this file.
1
13
#pragma once
14
15
#include "
BaseLib/ConfigTree-fwd.h
"
16
#include "
MaterialLib/MPL/Property.h
"
17
18
namespace
MaterialPropertyLib
19
{
20
class
Medium;
21
class
Phase;
22
class
Component
;
32
class
RelPermBrooksCorey
final :
public
Property
33
{
34
private
:
35
const
double
residual_liquid_saturation_
;
36
const
double
residual_gas_saturation_
;
37
const
double
min_relative_permeability_
;
38
const
double
exponent_
;
39
40
public
:
41
RelPermBrooksCorey
(std::string
name
,
42
const
double
/*residual_liquid_saturation*/
,
43
const
double
/*residual_gas_saturation*/
,
44
const
double
/*min_relative_permeability_liquid_*/
,
45
const
double
/*exponent*/
46
);
47
48
void
checkScale
()
const override
49
{
50
if
(!std::holds_alternative<Medium*>(
scale_
))
51
{
52
OGS_FATAL
(
53
"The property 'RelPermBrooksCorey' is implemented on the "
54
"'media' scale only."
);
55
}
56
}
57
60
PropertyDataType
value
(
VariableArray
const
& variable_array,
61
ParameterLib::SpatialPosition
const
& pos,
62
double
const
t,
double
const
dt)
const override
;
63
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
64
Variable
const
variable,
65
ParameterLib::SpatialPosition
const
& pos,
66
double
const
t,
double
const
dt)
const override
;
67
};
68
69
}
// 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::RelPermBrooksCorey
Relative permeability function of the wetting phase proposed by Brooks&Corey.
Definition
RelPermBrooksCorey.h:33
MaterialPropertyLib::RelPermBrooksCorey::exponent_
const double exponent_
Definition
RelPermBrooksCorey.h:38
MaterialPropertyLib::RelPermBrooksCorey::residual_gas_saturation_
const double residual_gas_saturation_
Definition
RelPermBrooksCorey.h:36
MaterialPropertyLib::RelPermBrooksCorey::residual_liquid_saturation_
const double residual_liquid_saturation_
Definition
RelPermBrooksCorey.h:35
MaterialPropertyLib::RelPermBrooksCorey::RelPermBrooksCorey
RelPermBrooksCorey(std::string name, const double, const double, const double, const double)
Definition
RelPermBrooksCorey.cpp:23
MaterialPropertyLib::RelPermBrooksCorey::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
RelPermBrooksCorey.cpp:75
MaterialPropertyLib::RelPermBrooksCorey::checkScale
void checkScale() const override
Definition
RelPermBrooksCorey.h:48
MaterialPropertyLib::RelPermBrooksCorey::min_relative_permeability_
const double min_relative_permeability_
Definition
RelPermBrooksCorey.h:37
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::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
RelPermBrooksCorey.h
Generated by
1.11.0