OGS
|
Effective medium property obtained by volume fraction averaging
This property must be a medium property. It computes the effective property based on the phase properties as a volume fraction weighted average in the following form
\[ X_{\mathrm{eff}} = \phi_\mathrm{p}\,X_\mathrm{pR} + \phi_\mathrm{f}\,X_\mathrm{fR} + \phi_\mathrm{l}\,X_\mathrm{lR} = (1-\phi) X_\mathrm{pR} + \phi_\mathrm{f}\,X_\mathrm{fR} + (\phi - \phi_\mathrm{f}) X_\mathrm{lR} \]
where \(\phi\) is the porosity (pore space volume fraction), \(\phi_\mathrm{p}\) is the porous solid skeleton volume fraction, \(\phi_\mathrm{f}\) is the frozen volume fraction, \(\phi_\mathrm{l}\) is the liquid one. \(\mathrm{R}\) stands for the real/pure phase property.
Definition at line 43 of file VolumeFractionAverage.h.
#include <VolumeFractionAverage.h>
Classes | |
struct | PhaseProperties |
Public Member Functions | |
VolumeFractionAverage (std::string name) | |
void | checkScale () const override |
void | setProperties (std::vector< std::unique_ptr< Phase > > const &phases) override |
Default implementation: | |
PropertyDataType | value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
PropertyDataType | dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
Public Member Functions inherited from MaterialPropertyLib::Property | |
virtual | ~Property () |
virtual PropertyDataType | initialValue (ParameterLib::SpatialPosition const &pos, double const t) const |
virtual PropertyDataType | value () const |
virtual PropertyDataType | value (VariableArray const &variable_array, VariableArray const &variable_array_prev, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
virtual PropertyDataType | dValue (VariableArray const &variable_array, VariableArray const &variable_array_prev, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
virtual PropertyDataType | d2Value (VariableArray const &variable_array, Variable const variable1, Variable const variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
Default implementation: 2nd derivative of any constant property is zero. | |
void | setScale (std::variant< Medium *, Phase *, Component * > scale) |
template<typename T > | |
T | initialValue (ParameterLib::SpatialPosition const &pos, double const t) const |
template<typename T > | |
T | value () const |
template<typename T > | |
T | value (VariableArray const &variable_array, VariableArray const &variable_array_prev, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | dValue (VariableArray const &variable_array, VariableArray const &variable_array_prev, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
template<typename T > | |
T | d2Value (VariableArray const &variable_array, Variable const &variable1, Variable const &variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const |
Protected Attributes | |
PropertyType | prop_type_ |
PhaseProperties | properties_ |
Protected Attributes inherited from MaterialPropertyLib::Property | |
std::string | name_ |
PropertyDataType | value_ |
The single value of a property. | |
PropertyDataType | dvalue_ |
std::variant< Medium *, Phase *, Component * > | scale_ |
|
explicit |
Definition at line 19 of file VolumeFractionAverage.cpp.
References MaterialPropertyLib::convertStringToProperty(), MaterialPropertyLib::name, MaterialPropertyLib::Property::name_, and prop_type_.
|
overridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 27 of file VolumeFractionAverage.cpp.
References OGS_FATAL, and MaterialPropertyLib::Property::scale_.
|
overridevirtual |
This virtual method will compute the property derivative value based on the variables that are passed as arguments with the default implementation using empty variables array for the previous time step.
The default implementation of this method only returns the property value derivative without altering it.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 105 of file VolumeFractionAverage.cpp.
References MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::frozen, MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::liquid, properties_, MaterialPropertyLib::Property::scale_, MaterialPropertyLib::temperature, MaterialPropertyLib::Property::value(), and MaterialPropertyLib::volume_fraction.
|
overridevirtual |
Default implementation:
This virtual method will collect the properties of the phases in order to access them from the medium property level.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 37 of file VolumeFractionAverage.cpp.
References MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::frozen, MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::liquid, OGS_FATAL, MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::porous, prop_type_, properties_, and MaterialPropertyLib::property_enum_to_string.
|
overridevirtual |
This virtual method will compute the property value based on the variables that are passed as arguments with the default implementation using empty variables array for the previous time step.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 73 of file VolumeFractionAverage.cpp.
References MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::frozen, MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::liquid, MaterialPropertyLib::porosity, MaterialPropertyLib::VolumeFractionAverage::PhaseProperties::porous, properties_, MaterialPropertyLib::Property::scale_, MaterialPropertyLib::Property::value(), and MaterialPropertyLib::volume_fraction.
|
protected |
Definition at line 74 of file VolumeFractionAverage.h.
Referenced by VolumeFractionAverage(), and setProperties().
|
protected |
Definition at line 75 of file VolumeFractionAverage.h.
Referenced by dValue(), setProperties(), and value().