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