OGS
WaterVapourLatentHeatWithCriticalTemperature.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
8
10{
11class Phase;
12
53{
54public:
56 {
57 name_ = std::move(name);
58 }
59
60 void checkScale() const override
61 {
62 if (!std::holds_alternative<Phase*>(scale_))
63 {
65 "The property 'WaterVapourLatentHeatWithCriticalTemperature' "
66 "is "
67 "implemented on the 'phase' scale only.");
68 }
69 }
70
71 PropertyDataType value(VariableArray const& variable_array,
73 double const t,
74 double const dt) const override;
75
76 PropertyDataType dValue(VariableArray const& variable_array,
77 Variable const variable,
79 double const t, double const dt) const override;
80};
81
82} // 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