OGS
VapourDiffusionFEBEX.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
7
9{
10class Phase;
11
43class VapourDiffusionFEBEX final : public Property
44{
45public:
47 double const base_diffusion_coefficient,
48 double const exponent)
49 : base_diffusion_coefficient_(base_diffusion_coefficient),
50 exponent_(exponent)
51 {
52 name_ = std::move(name);
53 }
54
55 void checkScale() const override
56 {
57 if (!(std::holds_alternative<Phase*>(scale_) ||
58 std::holds_alternative<Component*>(scale_)))
59 {
61 "The property 'VapourDiffusionFEBEX' is "
62 "implemented on the 'phase' and 'component' scale only.");
63 }
64 }
65
66 PropertyDataType value(VariableArray const& variable_array,
68 double const t,
69 double const dt) const override;
70
71 PropertyDataType dValue(VariableArray const& variable_array,
72 Variable const variable,
74 double const t, double const dt) const override;
75
76private:
78 double const exponent_;
79};
80
81} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
virtual PropertyDataType value() const
std::variant< Medium *, Phase *, Component * > scale_
VapourDiffusionFEBEX(std::string name, double const base_diffusion_coefficient, double const exponent)
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
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