OGS
RelPermUdell.h
Go to the documentation of this file.
1
13
#pragma once
14
15
#include "
MaterialLib/MPL/Property.h
"
16
17
namespace
MaterialPropertyLib
18
{
19
class
Medium;
20
class
Phase;
21
class
Component
;
42
class
RelPermUdell
final :
public
Property
43
{
44
private
:
45
const
double
residual_liquid_saturation_
;
46
const
double
residual_gas_saturation_
;
47
const
double
min_relative_permeability_
;
48
49
public
:
50
RelPermUdell
(std::string
name
,
const
double
residual_liquid_saturation
,
51
const
double
residual_gas_saturation
,
52
const
double
min_relative_permeability);
53
54
void
checkScale
()
const override
55
{
56
if
(!std::holds_alternative<Medium*>(
scale_
))
57
{
58
OGS_FATAL
(
59
"The property 'RelativePermeabilityUdell' is implemented on "
60
"the 'media' scale only."
);
61
}
62
}
63
64
PropertyDataType
value
(
VariableArray
const
& variable_array,
65
ParameterLib::SpatialPosition
const
& pos,
66
double
const
t,
double
const
dt)
const override
;
67
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
68
Variable
const
variable,
69
ParameterLib::SpatialPosition
const
& pos,
70
double
const
t,
double
const
dt)
const override
;
71
};
72
73
}
// namespace MaterialPropertyLib
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::RelPermUdell
Definition
RelPermUdell.h:43
MaterialPropertyLib::RelPermUdell::min_relative_permeability_
const double min_relative_permeability_
Definition
RelPermUdell.h:47
MaterialPropertyLib::RelPermUdell::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
RelPermUdell.cpp:64
MaterialPropertyLib::RelPermUdell::RelPermUdell
RelPermUdell(std::string name, const double residual_liquid_saturation, const double residual_gas_saturation, const double min_relative_permeability)
Definition
RelPermUdell.cpp:23
MaterialPropertyLib::RelPermUdell::checkScale
void checkScale() const override
Definition
RelPermUdell.h:54
MaterialPropertyLib::RelPermUdell::residual_gas_saturation_
const double residual_gas_saturation_
Definition
RelPermUdell.h:46
MaterialPropertyLib::RelPermUdell::residual_liquid_saturation_
const double residual_liquid_saturation_
Definition
RelPermUdell.h:45
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
RelativePermeability
RelPermUdell.h
Generated by
1.11.0