OGS
SaturationWeightedThermalConductivity.h
Go to the documentation of this file.
1
12#pragma once
13
14#include "BaseLib/Error.h"
16
17namespace ParameterLib
18{
19struct CoordinateSystem;
20template <typename T>
21struct Parameter;
22} // namespace ParameterLib
23
24namespace MaterialPropertyLib
25{
26class Medium;
27
34
53template <MeanType MeantType, int GlobalDimension>
55{
56public:
58 std::string name,
59 ParameterLib::Parameter<double> const& dry_thermal_conductivity,
60 ParameterLib::Parameter<double> const& wet_thermal_conductivity);
61
62 void checkScale() const override
63 {
64 if (!std::holds_alternative<Medium*>(scale_))
65 {
67 "The property 'SaturationWeightedThermalConductivity' is "
68 "implemented on the 'media' scale only.");
69 }
70 }
71
72 PropertyDataType value(VariableArray const& variable_array,
74 double const t,
75 double const dt) const override;
76
77 PropertyDataType dValue(VariableArray const& variable_array,
78 Variable const variable,
80 double const t,
81 double const dt) const override;
82
83private:
88};
89
90extern template class SaturationWeightedThermalConductivity<
92 1>;
93extern template class SaturationWeightedThermalConductivity<
95 1>;
97 1>;
98extern template class SaturationWeightedThermalConductivity<
100 2>;
101extern template class SaturationWeightedThermalConductivity<
103 2>;
105 2>;
106extern template class SaturationWeightedThermalConductivity<
108 3>;
109extern template class SaturationWeightedThermalConductivity<
111 3>;
113 3>;
114
115} // 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
Saturation dependent thermal conductivity model for soil.
SaturationWeightedThermalConductivity(std::string name, ParameterLib::Parameter< double > const &dry_thermal_conductivity, ParameterLib::Parameter< double > const &wet_thermal_conductivity)
ParameterLib::Parameter< double > const & wet_thermal_conductivity_
Thermal conductivity of soil at the fully water saturated state.
ParameterLib::Parameter< double > const & dry_thermal_conductivity_
Thermal conductivity of soil at the dry state.
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
Definition Property.h:31