OGS
CapillaryPressureVanGenuchten.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
;
13
34
class
CapillaryPressureVanGenuchten
:
public
Property
35
{
36
public
:
37
CapillaryPressureVanGenuchten
(std::string
name
,
38
double
const
residual_liquid_saturation
,
39
double
const
residual_gas_saturation
,
40
double
const
exponent,
41
double
const
p_b,
42
double
const
maximum_capillary_pressure);
43
44
void
checkScale
()
const override
45
{
46
if
(!std::holds_alternative<Medium*>(
scale_
))
47
{
48
OGS_FATAL
(
49
"The property 'CapillaryPressureVanGenuchten' is implemented "
50
"on the 'media' scale only."
);
51
}
52
}
53
55
PropertyDataType
value
(
VariableArray
const
& variable_array,
56
ParameterLib::SpatialPosition
const
& pos,
57
double
const
t,
58
double
const
dt)
const override
;
59
61
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
62
Variable
const
variable,
63
ParameterLib::SpatialPosition
const
& pos,
64
double
const
t,
65
double
const
dt)
const override
;
66
67
private
:
68
double
const
S_L_res_
;
69
double
const
S_L_max_
;
70
double
const
m_
;
71
double
const
p_b_
;
72
double
const
p_cap_max_
;
73
};
74
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:19
Property.h
MaterialPropertyLib::CapillaryPressureVanGenuchten::checkScale
void checkScale() const override
Definition
CapillaryPressureVanGenuchten.h:44
MaterialPropertyLib::CapillaryPressureVanGenuchten::m_
double const m_
Exponent.
Definition
CapillaryPressureVanGenuchten.h:70
MaterialPropertyLib::CapillaryPressureVanGenuchten::S_L_res_
double const S_L_res_
Residual saturation of liquid phase.
Definition
CapillaryPressureVanGenuchten.h:68
MaterialPropertyLib::CapillaryPressureVanGenuchten::p_b_
double const p_b_
Pressure scaling factor.
Definition
CapillaryPressureVanGenuchten.h:71
MaterialPropertyLib::CapillaryPressureVanGenuchten::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
CapillaryPressureVanGenuchten.cpp:101
MaterialPropertyLib::CapillaryPressureVanGenuchten::S_L_max_
double const S_L_max_
Maximum saturation of liquid phase.
Definition
CapillaryPressureVanGenuchten.h:69
MaterialPropertyLib::CapillaryPressureVanGenuchten::p_cap_max_
double const p_cap_max_
Maximum capillary pressure.
Definition
CapillaryPressureVanGenuchten.h:72
MaterialPropertyLib::CapillaryPressureVanGenuchten::CapillaryPressureVanGenuchten
CapillaryPressureVanGenuchten(std::string name, double const residual_liquid_saturation, double const residual_gas_saturation, double const exponent, double const p_b, double const maximum_capillary_pressure)
Definition
CapillaryPressureVanGenuchten.cpp:13
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::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
CapillaryPressureSaturation
CapillaryPressureVanGenuchten.h
Generated by
1.14.0