OGS
VolumeFractionAverage.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <array>
14
17
18namespace MaterialPropertyLib
19{
44{
45 // Struct with pointers on the properties of relevant phases
47 {
48 const Property* liquid = nullptr;
49 const Property* frozen = nullptr;
50 const Property* porous = nullptr;
51 };
52
53public:
54 explicit VolumeFractionAverage(std::string name);
55
56 void checkScale() const override;
57
58 // initialize container with pointers to the phases properties
59 void setProperties(
60 std::vector<std::unique_ptr<Phase>> const& phases) override;
61
62 PropertyDataType value(VariableArray const& variable_array,
64 double const t,
65 double const dt) const override;
66
67 PropertyDataType dValue(VariableArray const& variable_array,
68 Variable const variable,
70 double const t,
71 double const dt) const override;
72
73protected: // order matters!
76};
77} // namespace MaterialPropertyLib
virtual PropertyDataType value() const
Definition Property.cpp:76
void setProperties(std::vector< std::unique_ptr< Phase > > const &phases) override
Default implementation:
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