OGS
WaterVapourDensity.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
18class Phase;
19
56class WaterVapourDensity final : public Property
57{
58public:
59 explicit WaterVapourDensity(std::string name) { name_ = std::move(name); }
60 void checkScale() const override
61 {
62 if (!std::holds_alternative<Phase*>(scale_))
63 {
65 "The property 'WaterVapourDensity' is "
66 "implemented on the 'Phase' scale only.");
67 }
68 }
69
71 PropertyDataType value(VariableArray const& variable_array,
73 double const t, double const dt) const override;
76 PropertyDataType dValue(VariableArray const& variable_array,
77 Variable const variable,
79 double const t, double const dt) const override;
80};
81} // 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
A model for water vapour density in the unsaturated porous media.
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