OGS
AverageMolarMass.h
Go to the documentation of this file.
1
13#pragma once
14
17
18namespace MaterialPropertyLib
19{
20class Medium;
21class Phase;
22class Component;
29class AverageMolarMass final : public Property
30{
31public:
32 explicit AverageMolarMass(std::string name);
33
34 void checkScale() const override;
35
36 PropertyDataType value(VariableArray const& variable_array,
37 ParameterLib::SpatialPosition const& /*pos*/,
38 double const /*t*/,
39 double const /*dt*/) const override;
40 PropertyDataType dValue(VariableArray const& variable_array,
41 Variable const variable,
42 ParameterLib::SpatialPosition const& /*pos*/,
43 double const /*t*/,
44 double const /*dt*/) const override;
45 PropertyDataType d2Value(VariableArray const& variable_array,
46 Variable const variable1, Variable const variable2,
48 double const t, double const dt) const override;
49};
50} // namespace MaterialPropertyLib
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.
virtual PropertyDataType value() const
Definition Property.cpp:76
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