OGS
RelPermBrooksCoreyNonwettingPhase.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 <string>
7
8
#include "
BaseLib/ConfigTree-fwd.h
"
9
#include "
MaterialLib/MPL/Property.h
"
10
11
namespace
MaterialPropertyLib
12
{
13
class
Medium
;
14
class
Phase
;
15
class
Component
;
25
class
RelPermBrooksCoreyNonwettingPhase
final :
public
Property
26
{
27
private
:
28
const
double
residual_liquid_saturation_
;
29
const
double
residual_gas_saturation_
;
30
const
double
min_relative_permeability_
;
31
const
double
exponent_
;
32
33
public
:
34
RelPermBrooksCoreyNonwettingPhase
(std::string
name
,
35
const
double
residual_liquid_saturation
,
36
const
double
residual_gas_saturation
,
37
const
double
min_relative_permeability,
38
const
double
exponent);
39
40
void
checkScale
()
const override
41
{
42
if
(!std::holds_alternative<Medium*>(
scale_
))
43
{
44
OGS_FATAL
(
45
"The property 'RelPermBrooksCoreyNonwettingPhase' is "
46
"implemented on the 'media' scale only."
);
47
}
48
}
49
52
PropertyDataType
value
(
VariableArray
const
& variable_array,
53
ParameterLib::SpatialPosition
const
& pos,
54
double
const
t,
double
const
dt)
const override
;
55
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
56
Variable
const
variable,
57
ParameterLib::SpatialPosition
const
& pos,
58
double
const
t,
double
const
dt)
const override
;
59
};
60
61
}
// namespace MaterialPropertyLib
ConfigTree-fwd.h
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::RelPermBrooksCoreyNonwettingPhase::min_relative_permeability_
const double min_relative_permeability_
Definition
RelPermBrooksCoreyNonwettingPhase.h:30
MaterialPropertyLib::RelPermBrooksCoreyNonwettingPhase::checkScale
void checkScale() const override
Definition
RelPermBrooksCoreyNonwettingPhase.h:40
MaterialPropertyLib::RelPermBrooksCoreyNonwettingPhase::residual_gas_saturation_
const double residual_gas_saturation_
Definition
RelPermBrooksCoreyNonwettingPhase.h:29
MaterialPropertyLib::RelPermBrooksCoreyNonwettingPhase::residual_liquid_saturation_
const double residual_liquid_saturation_
Definition
RelPermBrooksCoreyNonwettingPhase.h:28
MaterialPropertyLib::RelPermBrooksCoreyNonwettingPhase::exponent_
const double exponent_
Definition
RelPermBrooksCoreyNonwettingPhase.h:31
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:13
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:67
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
RelPermBrooksCoreyNonwettingPhase.h
Generated by
1.14.0