OGS
LinearWaterVapourLatentHeat.cpp
Go to the documentation of this file.
1
13
14#include <cmath>
15
19
20namespace MaterialPropertyLib
21{
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 -
31}
32
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
44 "LinearWaterVapourLatentHeat::dValue is implemented for the derivative "
45 "with respect to temperature only.");
46}
47
48} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
virtual PropertyDataType value() const
Definition Property.cpp:76
constexpr double CelsiusZeroInKelvin
Zero degrees Celsius in Kelvin.
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