OGS
WaterVapourEnthalpyIAPWSIF97Region4.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
18class Phase;
19
24{
25public:
27 {
28 name_ = std::move(name);
29 }
30 void checkScale() const override
31 {
32 if (!std::holds_alternative<Phase*>(scale_))
33 {
35 "The property 'WaterVapourEnthalpyIAPWSIF97Region4' is "
36 "implemented on the 'Phase' scale only.");
37 }
38 }
39
41 PropertyDataType value(VariableArray const& variable_array,
43 double const t, double const dt) const override;
46 PropertyDataType dValue(VariableArray const& variable_array,
47 Variable const variable,
49 double const t, double const dt) const override;
50};
51} // 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
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