OGS
LinearWaterVapourLatentHeat.cpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
5
6#include <cmath>
7
11
12namespace MaterialPropertyLib
13{
15 const VariableArray& variable_array,
16 const ParameterLib::SpatialPosition& /*pos*/, const double /*t*/,
17 const double /*dt*/) const
18{
19 const double T = variable_array.temperature;
20
21 return 2.501e+6 -
23}
24
26 VariableArray const& /*variable_array*/, Variable const variable,
27 ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
28 double const /*dt*/) const
29{
30 if (variable == Variable::temperature)
31 {
32 return -2369.2;
33 }
34
36 "LinearWaterVapourLatentHeat::dValue is implemented for the derivative "
37 "with respect to temperature only.");
38}
39
40} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
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
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