OGS
LinearWaterVapourLatentHeat.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
18class Phase;
19
37{
38public:
39 explicit LinearWaterVapourLatentHeat(std::string name)
40 {
41 name_ = std::move(name);
42 }
43
44 void checkScale() const override
45 {
46 if (!(std::holds_alternative<Phase*>(scale_) ||
47 std::holds_alternative<Component*>(scale_)))
48 {
50 "The property 'LinearWaterVapourLatentHeat' is "
51 "implemented on the 'phase' and 'component' scale only.");
52 }
53 }
54
55 PropertyDataType value(VariableArray const& variable_array,
57 double const t,
58 double const dt) const override;
59
60 PropertyDataType dValue(VariableArray const& variable_array,
61 Variable const variable,
63 double const t, double const dt) const override;
64};
65
66} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
An empirical function for the latent heat of vaporization of liquid water, which is given by p....
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
virtual PropertyDataType value() const
Definition Property.cpp:76
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297
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