Loading [MathJax]/extensions/tex2jax.js
OGS
Toggle main menu visibility
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
a
b
c
d
e
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
v
w
z
Enumerations
b
c
d
e
f
g
i
l
m
n
o
p
s
t
u
v
Enumerator
a
b
c
d
e
f
g
h
l
m
n
p
r
s
t
v
y
Classes
Class List
Class Index
Class Hierarchy
Files
File List
File Members
All
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
x
Functions
a
c
d
e
f
g
i
m
o
p
r
s
t
v
w
Variables
Typedefs
Enumerations
Macros
b
c
g
m
n
o
p
r
s
t
LinearWaterVapourLatentHeat.cpp
Go to the documentation of this file.
1
12
#include "
LinearWaterVapourLatentHeat.h
"
13
14
#include <cmath>
15
16
#include "
MaterialLib/MPL/Medium.h
"
17
#include "
MaterialLib/MPL/VariableType.h
"
18
#include "
MaterialLib/PhysicalConstant.h
"
19
20
namespace
MaterialPropertyLib
21
{
22
PropertyDataType
LinearWaterVapourLatentHeat::value
(
23
const
VariableArray
& variable_array,
24
const
ParameterLib::SpatialPosition
&
/*pos*/
,
const
double
/*t*/
,
25
const
double
/*dt*/
)
const
26
{
27
const
double
T = variable_array.
temperature
;
28
29
return
2.501e+6 -
30
2369.2 * (T -
MaterialLib::PhysicalConstant::CelsiusZeroInKelvin
);
31
}
22
PropertyDataType
LinearWaterVapourLatentHeat::value
( {
…
}
32
33
PropertyDataType
LinearWaterVapourLatentHeat::dValue
(
34
VariableArray
const
&
/*variable_array*/
,
Variable
const
variable,
35
ParameterLib::SpatialPosition
const
&
/*pos*/
,
double
const
/*t*/
,
36
double
const
/*dt*/
)
const
37
{
38
if
(variable ==
Variable::temperature
)
39
{
40
return
-2369.2;
41
}
42
43
OGS_FATAL
(
44
"LinearWaterVapourLatentHeat::dValue is implemented for the derivative "
45
"with respect to temperature only."
);
46
}
33
PropertyDataType
LinearWaterVapourLatentHeat::dValue
( {
…
}
47
48
}
// namespace MaterialPropertyLib
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
LinearWaterVapourLatentHeat.h
Medium.h
PhysicalConstant.h
VariableType.h
MaterialPropertyLib::LinearWaterVapourLatentHeat::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
LinearWaterVapourLatentHeat.cpp:33
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::VariableArray
Definition
VariableType.h:101
MaterialPropertyLib::VariableArray::temperature
double temperature
Definition
VariableType.h:193
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:28
MaterialLib::PhysicalConstant::CelsiusZeroInKelvin
constexpr double CelsiusZeroInKelvin
Zero degrees Celsius in Kelvin.
Definition
PhysicalConstant.h:22
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::Variable::temperature
@ temperature
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
Enthalpy
LinearWaterVapourLatentHeat.cpp
Generated by
1.12.0