OGS
LiquidViscosityVogels.h
Go to the documentation of this file.
1
12
#pragma once
13
14
#include "
MaterialLib/MPL/Property.h
"
15
16
namespace
MaterialPropertyLib
17
{
18
class
Phase;
19
24
template
<
typename
VogelsConstants>
25
class
LiquidViscosityVogels
final :
public
Property
26
{
27
public
:
28
explicit
LiquidViscosityVogels
(std::string
name
, VogelsConstants constants)
29
:
constants_
(std::move(constants))
30
{
31
name_
= std::move(
name
);
32
};
33
34
void
checkScale
()
const override
35
{
36
if
(!std::holds_alternative<Phase*>(
scale_
))
37
{
38
OGS_FATAL
(
39
"The property 'LiquidViscosityVogels' is "
40
"implemented on the 'Phase' scale only."
);
41
}
42
}
43
45
PropertyDataType
value
(
VariableArray
const
& variable_array,
46
ParameterLib::SpatialPosition
const
& pos,
47
double
const
t,
double
const
dt)
const override
;
50
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
51
Variable
const
variable,
52
ParameterLib::SpatialPosition
const
& pos,
53
double
const
t,
double
const
dt)
const override
;
54
55
private
:
56
const
VogelsConstants
constants_
;
57
// Coefficients Hi and Hij are given in two static arrays in the cpp file.
58
};
59
64
struct
VogelsViscosityConstantsWater
65
{
66
VogelsViscosityConstantsWater
() =
default
;
67
const
double
A
= -3.7188;
68
const
double
B
= 578.919;
69
const
double
C
= -137.546;
70
};
71
72
struct
VogelsViscosityConstantsCO2
73
{
74
VogelsViscosityConstantsCO2
() =
default
;
75
const
double
A
= -24.0592;
76
const
double
B
= 28535.2;
77
const
double
C
= 1037.41;
78
};
79
80
struct
VogelsViscosityConstantsCH4
81
{
82
VogelsViscosityConstantsCH4
() =
default
;
83
const
double
A
= -25.5947;
84
const
double
B
= 25392;
85
const
double
C
= 969.306;
86
};
87
88
extern
template
class
LiquidViscosityVogels<VogelsViscosityConstantsWater>
;
89
extern
template
class
LiquidViscosityVogels<VogelsViscosityConstantsCO2>
;
90
extern
template
class
LiquidViscosityVogels<VogelsViscosityConstantsCH4>
;
91
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
Property.h
MaterialPropertyLib::LiquidViscosityVogels
Definition
LiquidViscosityVogels.h:26
MaterialPropertyLib::LiquidViscosityVogels::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
LiquidViscosityVogels.cpp:34
MaterialPropertyLib::LiquidViscosityVogels::LiquidViscosityVogels
LiquidViscosityVogels(std::string name, VogelsConstants constants)
Definition
LiquidViscosityVogels.h:28
MaterialPropertyLib::LiquidViscosityVogels::checkScale
void checkScale() const override
Definition
LiquidViscosityVogels.h:34
MaterialPropertyLib::LiquidViscosityVogels::constants_
const VogelsConstants constants_
Definition
LiquidViscosityVogels.h:56
MaterialPropertyLib::Property
Definition
Property.h:51
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::Property::name_
std::string name_
Definition
Property.h:290
MaterialPropertyLib::Property::scale_
std::variant< Medium *, Phase *, Component * > scale_
Definition
Property.h:297
MaterialPropertyLib::VariableArray
Definition
VariableType.h:97
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::name
@ name
Definition
PropertyType.h:66
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
MaterialPropertyLib::VogelsViscosityConstantsCH4
Definition
LiquidViscosityVogels.h:81
MaterialPropertyLib::VogelsViscosityConstantsCH4::A
const double A
Definition
LiquidViscosityVogels.h:83
MaterialPropertyLib::VogelsViscosityConstantsCH4::VogelsViscosityConstantsCH4
VogelsViscosityConstantsCH4()=default
MaterialPropertyLib::VogelsViscosityConstantsCH4::B
const double B
Definition
LiquidViscosityVogels.h:84
MaterialPropertyLib::VogelsViscosityConstantsCH4::C
const double C
Definition
LiquidViscosityVogels.h:85
MaterialPropertyLib::VogelsViscosityConstantsCO2
Definition
LiquidViscosityVogels.h:73
MaterialPropertyLib::VogelsViscosityConstantsCO2::B
const double B
Definition
LiquidViscosityVogels.h:76
MaterialPropertyLib::VogelsViscosityConstantsCO2::VogelsViscosityConstantsCO2
VogelsViscosityConstantsCO2()=default
MaterialPropertyLib::VogelsViscosityConstantsCO2::C
const double C
Definition
LiquidViscosityVogels.h:77
MaterialPropertyLib::VogelsViscosityConstantsCO2::A
const double A
Definition
LiquidViscosityVogels.h:75
MaterialPropertyLib::VogelsViscosityConstantsWater
Definition
LiquidViscosityVogels.h:65
MaterialPropertyLib::VogelsViscosityConstantsWater::B
const double B
Definition
LiquidViscosityVogels.h:68
MaterialPropertyLib::VogelsViscosityConstantsWater::VogelsViscosityConstantsWater
VogelsViscosityConstantsWater()=default
MaterialPropertyLib::VogelsViscosityConstantsWater::A
const double A
Definition
LiquidViscosityVogels.h:67
MaterialPropertyLib::VogelsViscosityConstantsWater::C
const double C
Definition
LiquidViscosityVogels.h:69
MaterialLib
MPL
Properties
Viscosity
LiquidViscosityVogels.h
Generated by
1.12.0