OGS
RelPermGeneralizedPowerNonwettingPhase.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2
// SPDX-License-Identifier: BSD-3-Clause
3
4
#pragma once
5
6
#include "
MaterialLib/MPL/Property.h
"
7
8
namespace
MaterialPropertyLib
9
{
10
class
Medium
;
11
class
Phase
;
12
class
Component
;
31
class
RelPermGeneralizedPowerNonwettingPhase
final :
public
Property
32
{
33
private
:
34
const
double
residual_liquid_saturation_
;
35
const
double
residual_gas_saturation_
;
36
const
double
min_relative_permeability_
;
37
const
double
a_
;
38
const
double
lambda_
;
39
40
public
:
41
RelPermGeneralizedPowerNonwettingPhase
(
42
std::string
name
,
43
const
double
residual_liquid_saturation
,
44
const
double
residual_gas_saturation
,
45
const
double
min_relative_permeability,
46
const
double
a,
47
const
double
lambda);
48
49
void
checkScale
()
const override
50
{
51
if
(!std::holds_alternative<Medium*>(
scale_
))
52
{
53
OGS_FATAL
(
54
"The property "
55
"'RelativePermeabilityGeneralizedPowerNonwettingPhase' is "
56
"implemented on the 'media' scale only."
);
57
}
58
}
59
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
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:19
Property.h
MaterialPropertyLib::Component
This class defines components (substances).
Definition
Component.h:18
MaterialPropertyLib::Medium
Definition
Medium.h:24
MaterialPropertyLib::Phase
Definition
Phase.h:24
MaterialPropertyLib::Property
Definition
MaterialLib/MPL/Property.h:44
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
MaterialLib/MPL/Property.cpp:67
MaterialPropertyLib::Property::scale_
std::variant< Medium *, Phase *, Component * > scale_
Definition
MaterialLib/MPL/Property.h:290
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:12
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::checkScale
void checkScale() const override
Definition
RelPermGeneralizedPowerNonwettingPhase.h:49
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:63
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::residual_liquid_saturation_
const double residual_liquid_saturation_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:34
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::min_relative_permeability_
const double min_relative_permeability_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:36
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::residual_gas_saturation_
const double residual_gas_saturation_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:35
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::lambda_
const double lambda_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:38
MaterialPropertyLib::RelPermGeneralizedPowerNonwettingPhase::a_
const double a_
Definition
RelPermGeneralizedPowerNonwettingPhase.h:37
MaterialPropertyLib::VariableArray
Definition
VariableType.h:94
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:21
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:98
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:21
MaterialPropertyLib::name
@ name
Definition
PropertyType.h:57
MaterialPropertyLib::residual_liquid_saturation
@ residual_liquid_saturation
Definition
PropertyType.h:72
MaterialPropertyLib::residual_gas_saturation
@ residual_gas_saturation
Definition
PropertyType.h:71
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
MaterialLib/MPL/Property.h:24
MaterialLib
MPL
Properties
RelativePermeability
RelPermGeneralizedPowerNonwettingPhase.h
Generated by
1.14.0