OGS
VapourDiffusionFEBEX.cpp
Go to the documentation of this file.
1
13
14#include <algorithm>
15#include <cmath>
16
20
21namespace MaterialPropertyLib
22{
24 const VariableArray& variable_array,
25 const ParameterLib::SpatialPosition& /*pos*/, const double /*t*/,
26 const double /*dt*/) const
27{
28 const double T = variable_array.temperature;
29
32 exponent_);
33}
34
36 VariableArray const& variable_array, Variable const variable,
37 ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
38 double const /*dt*/) const
39{
40 const double T = variable_array.temperature;
41
42 if (variable == Variable::temperature)
43 {
46 exponent_ - 1.0) /
48 }
49 if (variable == Variable::liquid_saturation)
50 {
51 return 0.0;
52 }
53
55 "VapourDiffusionFEBEX::dValue is implemented for derivatives with "
56 "respect to temperature or saturation only.");
57}
58
59} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
virtual PropertyDataType value() const
Definition Property.cpp:76
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
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