OGS
WaterThermalConductivityIAPWS.h
Go to the documentation of this file.
1
12#pragma once
13
15
16namespace MaterialPropertyLib
17{
18class Phase;
19
35{
36public:
37 explicit WaterThermalConductivityIAPWS(std::string name)
38 {
39 name_ = std::move(name);
40 }
41 void checkScale() const override
42 {
43 if (!std::holds_alternative<Phase*>(scale_))
44 {
46 "The property 'WaterThermalConductivityIAPWS' is "
47 "implemented on the 'Phase' scale only.");
48 }
49 }
50
52 PropertyDataType value(VariableArray const& variable_array,
54 double const t, double const dt) const override;
57 PropertyDataType dValue(VariableArray const& variable_array,
58 Variable const variable,
60 double const t, double const dt) const override;
61
62private:
63 static constexpr double ref_T_ = 647.096;
64 static constexpr double ref_rho_ =
65 322.0;
66 static constexpr double ref_lambda_ =
67 1.0e-3;
68};
69} // 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
A class for thermal conductivity model that is defined by The International Association for the Prope...
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
Definition Property.h:31