OGS
SpecificHeatCapacityWithLatentHeat.h
Go to the documentation of this file.
1
11#pragma once
12
14
15namespace MaterialPropertyLib
16{
38{
40 {
41 Property const* liquid = nullptr;
42 Property const* frozen = nullptr;
43 Property const* porous = nullptr;
44 };
45
46public:
47 SpecificHeatCapacityWithLatentHeat(std::string name, double const l);
48
49 void checkScale() const override;
50
51 // initialize container with pointers to the phases properties
52 void setProperties(
53 std::vector<std::unique_ptr<Phase>> const& phases) override;
54
56 VariableArray const& variable_array,
58 double const t,
59 double const dt) const;
60
61 PropertyDataType value(VariableArray const& variable_array,
63 double const t,
64 double const dt) const override;
65
66 PropertyDataType dValue(VariableArray const& variable_array,
67 Variable const variable,
69 double const t,
70 double const dt) const override;
71
72private:
73 double const l_; //< specific latent heat of melting
74
79};
80} // namespace MaterialPropertyLib
virtual PropertyDataType value() const
Definition Property.cpp:76
void setProperties(std::vector< std::unique_ptr< Phase > > const &phases) override
Default implementation:
PhaseProperties spec_heat_capacities_
Pointers to the properties in each phase.
PhaseProperties densities_
Pointers to the properties in each phase.
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
double effectiveVolumetricHeatCapacity(VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const
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