OGS
IdealGasLawBinaryMixture.h
Go to the documentation of this file.
1
13#pragma once
14
17
18namespace MaterialPropertyLib
19{
20class Phase;
28{
29public:
30 explicit IdealGasLawBinaryMixture(std::string name);
31
32 void checkScale() const override
33 {
34 if (!std::holds_alternative<Phase*>(scale_))
35 {
37 "The property 'IdealGasLawBinaryMixture' is implemented on the "
38 "'phase' scale only.");
39 }
40 }
41
44 PropertyDataType value(VariableArray const& variable_array,
45 ParameterLib::SpatialPosition const& /*pos*/,
46 double const /*t*/,
47 double const /*dt*/) const override;
48 PropertyDataType dValue(VariableArray const& variable_array,
49 Variable const variable,
50 ParameterLib::SpatialPosition const& /*pos*/,
51 double const /*t*/,
52 double const /*dt*/) const override;
53 PropertyDataType d2Value(VariableArray const& variable_array,
54 Variable const variable1, Variable const variable2,
55 ParameterLib::SpatialPosition const& /*pos*/,
56 double const /*t*/,
57 double const /*dt*/) const override;
58};
59
60} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
Density function for binary ideal gases.
PropertyDataType d2Value(VariableArray const &variable_array, Variable const variable1, Variable const variable2, ParameterLib::SpatialPosition const &, double const, double const) const override
Default implementation: 2nd derivative of any constant property is zero.
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &, double const, double const) const override
virtual PropertyDataType value() const
Definition Property.cpp:76
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297
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