OGS
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
}
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
}
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:97
MaterialPropertyLib::VariableArray::temperature
double temperature
Definition
VariableType.h:188
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
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