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