OGS
VolumeFractionAverage.h
Go to the documentation of this file.
1
11
#pragma once
12
13
#include <array>
14
15
#include "
MaterialLib/MPL/Phase.h
"
16
#include "
MaterialLib/MPL/Property.h
"
17
18
namespace
MaterialPropertyLib
19
{
43
class
VolumeFractionAverage
:
public
Property
44
{
45
// Struct with pointers on the properties of relevant phases
46
struct
PhaseProperties
47
{
48
const
Property
*
liquid
=
nullptr
;
49
const
Property
*
frozen
=
nullptr
;
50
const
Property
*
porous
=
nullptr
;
51
};
52
53
public
:
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,
63
ParameterLib::SpatialPosition
const
& pos,
64
double
const
t,
65
double
const
dt)
const override
;
66
67
PropertyDataType
dValue
(
VariableArray
const
& variable_array,
68
Variable
const
variable,
69
ParameterLib::SpatialPosition
const
& pos,
70
double
const
t,
71
double
const
dt)
const override
;
72
73
protected
:
// order matters!
74
PropertyType
prop_type_
;
75
PhaseProperties
properties_
;
76
};
77
}
// namespace MaterialPropertyLib
Property.h
Phase.h
MaterialPropertyLib::Property
Definition
Property.h:51
MaterialPropertyLib::Property::value
virtual PropertyDataType value() const
Definition
Property.cpp:76
MaterialPropertyLib::VariableArray
Definition
VariableType.h:99
MaterialPropertyLib::VolumeFractionAverage
Definition
VolumeFractionAverage.h:44
MaterialPropertyLib::VolumeFractionAverage::prop_type_
PropertyType prop_type_
Definition
VolumeFractionAverage.h:74
MaterialPropertyLib::VolumeFractionAverage::checkScale
void checkScale() const override
Definition
VolumeFractionAverage.cpp:27
MaterialPropertyLib::VolumeFractionAverage::properties_
PhaseProperties properties_
Definition
VolumeFractionAverage.h:75
MaterialPropertyLib::VolumeFractionAverage::VolumeFractionAverage
VolumeFractionAverage(std::string name)
Definition
VolumeFractionAverage.cpp:19
MaterialPropertyLib::VolumeFractionAverage::setProperties
void setProperties(std::vector< std::unique_ptr< Phase > > const &phases) override
Default implementation:
Definition
VolumeFractionAverage.cpp:37
MaterialPropertyLib::VolumeFractionAverage::dValue
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
Definition
VolumeFractionAverage.cpp:105
ParameterLib::SpatialPosition
Definition
SpatialPosition.h:27
MaterialPropertyLib
Definition
ChemicalSolverInterface.h:21
MaterialPropertyLib::Variable
Variable
Definition
VariableType.h:30
MaterialPropertyLib::PropertyType
PropertyType
Definition
PropertyType.h:33
MaterialPropertyLib::name
@ name
Definition
PropertyType.h:66
MaterialPropertyLib::PropertyDataType
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
MaterialPropertyLib::VolumeFractionAverage::PhaseProperties
Definition
VolumeFractionAverage.h:47
MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::porous
const Property * porous
Definition
VolumeFractionAverage.h:50
MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::liquid
const Property * liquid
Definition
VolumeFractionAverage.h:48
MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::frozen
const Property * frozen
Definition
VolumeFractionAverage.h:49
MaterialLib
MPL
Properties
VolumeFractionAverage.h
Generated by
1.11.0