OGS
|
Molar mass of a mixture by mole fraction weighted average \( M=\Sigma_\zeta x_{n,\alpha}^{\zeta}M^{\zeta}\).
This property must be a phase property.
Definition at line 29 of file AverageMolarMass.h.
#include <AverageMolarMass.h>
Public Member Functions | |
AverageMolarMass (std::string name) | |
void | checkScale () const override |
PropertyDataType | value (VariableArray const &variable_array, ParameterLib::SpatialPosition const &, double const, double const) const override |
PropertyDataType | dValue (VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &, double const, double const) const override |
PropertyDataType | d2Value (VariableArray const &variable_array, Variable const variable1, Variable const variable2, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override |
Default implementation: 2nd derivative of any constant property is zero. | |
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 void | setProperties (std::vector< std::unique_ptr< Phase > > const &phases) |
Default implementation: | |
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 |
Additional Inherited Members | |
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 20 of file AverageMolarMass.cpp.
References MaterialPropertyLib::name, and MaterialPropertyLib::Property::name_.
|
overridevirtual |
Reimplemented from MaterialPropertyLib::Property.
Definition at line 25 of file AverageMolarMass.cpp.
References OGS_FATAL, and MaterialPropertyLib::Property::scale_.
|
overridevirtual |
Default implementation: 2nd derivative of any constant property is zero.
This virtual method will compute the second derivative of a property with respect to the given variables pv1 and pv2.
Reimplemented from MaterialPropertyLib::Property.
Definition at line 130 of file AverageMolarMass.cpp.
References OGS_FATAL.
|
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 85 of file AverageMolarMass.cpp.
References dValue(), MaterialPropertyLib::gas_phase_pressure, MaterialPropertyLib::molar_mass, MaterialPropertyLib::mole_fraction, OGS_FATAL, MaterialPropertyLib::Property::scale_, MaterialPropertyLib::temperature, and MaterialPropertyLib::Property::value().
Referenced by dValue().
|
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 35 of file AverageMolarMass.cpp.
References MaterialPropertyLib::c, MaterialPropertyLib::molar_fraction, MaterialPropertyLib::molar_mass, MaterialPropertyLib::mole_fraction, OGS_FATAL, MaterialPropertyLib::Property::scale_, and MaterialPropertyLib::Property::value().