OGS
WaterSaturationTemperatureIAPWSIF97Region4.cpp
Go to the documentation of this file.
1
13
14#include "BaseLib/Error.h"
16
17namespace MaterialPropertyLib
18{
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
38}
39
41 VariableArray const& /*variable_array*/, Variable const /*variable*/,
42 ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
43 double const /*dt*/) const
44{
46 "WaterSaturationTemperatureIAPWSIF97Region4::dValue is not "
47 "implemented.");
48}
49
50} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
void WARN(fmt::format_string< Args... > fmt, Args &&... args)
Definition Logging.h:40
virtual PropertyDataType value() const
Definition Property.cpp:76
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
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override