OGS
VapourDiffusionFEBEX.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
18class Phase;
19
51class VapourDiffusionFEBEX final : public Property
52{
53public:
55 double const base_diffusion_coefficient,
56 double const exponent)
57 : base_diffusion_coefficient_(base_diffusion_coefficient),
58 exponent_(exponent)
59 {
60 name_ = std::move(name);
61 }
62
63 void checkScale() const override
64 {
65 if (!(std::holds_alternative<Phase*>(scale_) ||
66 std::holds_alternative<Component*>(scale_)))
67 {
69 "The property 'VapourDiffusionFEBEX' is "
70 "implemented on the 'phase' and 'component' scale only.");
71 }
72 }
73
74 PropertyDataType value(VariableArray const& variable_array,
76 double const t,
77 double const dt) const override;
78
79 PropertyDataType dValue(VariableArray const& variable_array,
80 Variable const variable,
82 double const t, double const dt) const override;
83
84private:
86 double const exponent_;
87};
88
89} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
virtual PropertyDataType value() const
Definition Property.cpp:76
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297
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
Definition Property.h:31