OGS
VapourDiffusionFEBEX.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 <algorithm>
7#include <cmath>
8
12
13namespace MaterialPropertyLib
14{
16 const VariableArray& variable_array,
17 const ParameterLib::SpatialPosition& /*pos*/, const double /*t*/,
18 const double /*dt*/) const
19{
20 const double T = variable_array.temperature;
21
24 exponent_);
25}
26
28 VariableArray const& variable_array, Variable const variable,
29 ParameterLib::SpatialPosition const& /*pos*/, double const /*t*/,
30 double const /*dt*/) const
31{
32 const double T = variable_array.temperature;
33
34 if (variable == Variable::temperature)
35 {
38 exponent_ - 1.0) /
40 }
41 if (variable == Variable::liquid_saturation)
42 {
43 return 0.0;
44 }
45
47 "VapourDiffusionFEBEX::dValue is implemented for derivatives with "
48 "respect to temperature or saturation only.");
49}
50
51} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
virtual PropertyDataType value() const
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