OGS
RelPermGeneralizedPowerNonwettingPhase.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
;
37
class
RelPermGeneralizedPowerNonwettingPhase
final :
public
Property
38
{
39
private
:
40
const
double
residual_liquid_saturation_
;
41
const
double
residual_gas_saturation_
;
42
const
double
min_relative_permeability_
;
43
const
double
a_
;
44
const
double
lambda_
;
45
46
public
:
47
RelPermGeneralizedPowerNonwettingPhase
(
48
std::string
name
,
49
const
double
residual_liquid_saturation
,
50
const
double
residual_gas_saturation
,
51
const
double
min_relative_permeability,
52
const
double
a,
53
const
double
lambda);
54
55
void
checkScale
()
const override
56
{
57
if
(!std::holds_alternative<Medium*>(
scale_
))
58
{
59
OGS_FATAL
(
60
"The property "
61
"'RelativePermeabilityGeneralizedPowerNonwettingPhase' is "
62
"implemented on the 'media' scale only."
);
63
}
64
}
65
66
PropertyDataType
value
(
VariableArray
const
& variable_array,
67
ParameterLib::SpatialPosition
const
& pos,
68
double
const
t,
double
const
dt)
const override
;
69
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
70
Variable
const
variable,
71
ParameterLib::SpatialPosition
const
& pos,
72
double
const
t,
double
const
dt)
const override
;
73
};
74
75
}
// 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::RelPermGeneralizedPowerNonwettingPhase
Definition
RelPermGeneralizedPowerNonwettingPhase.h:38
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::RelPermGeneralizedPowerNonwettingPhase
RelPermGeneralizedPowerNonwettingPhase(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
RelPermGeneralizedPowerNonwettingPhase.cpp:19
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::checkScale
void checkScale() const override
Definition
RelPermGeneralizedPowerNonwettingPhase.h:55
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
RelPermGeneralizedPowerNonwettingPhase.cpp:70
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::residual_liquid_saturation_
const double residual_liquid_saturation_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:40
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::min_relative_permeability_
const double min_relative_permeability_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:42
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::residual_gas_saturation_
const double residual_gas_saturation_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:41
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::lambda_
const double lambda_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:44
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::a_
const double a_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:43
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
RelPermGeneralizedPowerNonwettingPhase.h
Generated by
1.12.0