OGS
WaterThermalConductivityIAPWS.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
27{
28public:
29 explicit WaterThermalConductivityIAPWS(std::string name)
30 {
31 name_ = std::move(name);
32 }
33 void checkScale() const override
34 {
35 if (!std::holds_alternative<Phase*>(scale_))
36 {
38 "The property 'WaterThermalConductivityIAPWS' is "
39 "implemented on the 'Phase' scale only.");
40 }
41 }
42
44 PropertyDataType value(VariableArray const& variable_array,
46 double const t, double const dt) const override;
49 PropertyDataType dValue(VariableArray const& variable_array,
50 Variable const variable,
52 double const t, double const dt) const override;
53
54private:
55 static constexpr double ref_T_ = 647.096;
56 static constexpr double ref_rho_ =
57 322.0;
58 static constexpr double ref_lambda_ =
59 1.0e-3;
60};
61} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
virtual PropertyDataType value() const
std::variant< Medium *, Phase *, Component * > scale_
static constexpr double ref_lambda_
reference thermal conductivity in W.K^-1.m^-1
static constexpr double ref_T_
reference temperature in K
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
static constexpr double ref_rho_
reference density in kg/m^3
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