OGS
WaterVapourEnthalpyIAPWSIF97Region4.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
16{
17public:
19 {
20 name_ = std::move(name);
21 }
22 void checkScale() const override
23 {
24 if (!std::holds_alternative<Phase*>(scale_))
25 {
27 "The property 'WaterVapourEnthalpyIAPWSIF97Region4' is "
28 "implemented on the 'Phase' scale only.");
29 }
30 }
31
33 PropertyDataType value(VariableArray const& variable_array,
35 double const t, double const dt) const override;
38 PropertyDataType dValue(VariableArray const& variable_array,
39 Variable const variable,
41 double const t, double const dt) const override;
42};
43} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
virtual PropertyDataType value() const
std::variant< Medium *, Phase *, Component * > scale_
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