OGS
WaterSaturationTemperatureIAPWSIF97Region4.cpp
Go to the documentation of this file.
1
12
#include "
WaterSaturationTemperatureIAPWSIF97Region4.h
"
13
14
#include "
BaseLib/Error.h
"
15
#include "
WaterSaturationCurveIAPWSIF97Region4.h
"
16
17
namespace
MaterialPropertyLib
18
{
19
PropertyDataType
WaterSaturationTemperatureIAPWSIF97Region4::value
(
20
VariableArray
const
& variable_array,
21
ParameterLib::SpatialPosition
const
&
/*pos*/
,
double
const
/*t*/
,
22
double
const
/*dt*/
)
const
23
{
24
double
const
p = variable_array.
liquid_phase_pressure
;
25
30
if
((p < 611.213) || (p > 22.064e6))
31
{
32
WARN
(
33
"Pressure is out of the range for the water saturation temperature "
34
"in region4."
);
35
}
36
37
return
IAPWSIF97Region4::waterSaturationTemperature
(p);
38
}
39
40
PropertyDataType
WaterSaturationTemperatureIAPWSIF97Region4::dValue
(
41
VariableArray
const
&
/*variable_array*/
,
Variable
const
/*variable*/
,
42
ParameterLib::SpatialPosition
const
&
/*pos*/
,
double
const
/*t*/
,
43
double
const
/*dt*/
)
const
44
{
45
OGS_FATAL
(
46
"WaterSaturationTemperatureIAPWSIF97Region4::dValue is not "
47
"implemented."
);
48
}
49
50
}
// namespace MaterialPropertyLib
Error.h
OGS_FATAL
#define OGS_FATAL(...)
Definition
Error.h:26
WARN
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
Definition
Logging.h:40
WaterSaturationCurveIAPWSIF97Region4.h
WaterSaturationTemperatureIAPWSIF97Region4.h
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::VariableArray
Definition
VariableType.h:99
MaterialPropertyLib::VariableArray::liquid_phase_pressure
double liquid_phase_pressure
Definition
VariableType.h:181
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib::IAPWSIF97Region4::waterSaturationTemperature
double waterSaturationTemperature(double const pressure)
Definition
WaterSaturationCurveIAPWSIF97Region4.h:23
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
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::WaterSaturationTemperatureIAPWSIF97Region4::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
WaterSaturationTemperatureIAPWSIF97Region4.cpp:40
MaterialLib
MPL
Properties
WaterSaturationTemperatureIAPWSIF97Region4.cpp
Generated by
1.11.0