OGS
LinearWaterVapourLatentHeat.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
29{
30public:
31 explicit LinearWaterVapourLatentHeat(std::string name)
32 {
33 name_ = std::move(name);
34 }
35
36 void checkScale() const override
37 {
38 if (!(std::holds_alternative<Phase*>(scale_) ||
39 std::holds_alternative<Component*>(scale_)))
40 {
42 "The property 'LinearWaterVapourLatentHeat' is "
43 "implemented on the 'phase' and 'component' scale only.");
44 }
45 }
46
47 PropertyDataType value(VariableArray const& variable_array,
49 double const t,
50 double const dt) const override;
51
52 PropertyDataType dValue(VariableArray const& variable_array,
53 Variable const variable,
55 double const t, double const dt) const override;
56};
57
58} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
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
std::variant< Medium *, Phase *, Component * > scale_
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