OGS
SaturationVanGenuchtenWithVolumetricStrain.h
Go to the documentation of this file.
1
10#pragma once
11
13
14namespace MaterialPropertyLib
15{
16class Medium;
17class Phase;
18class Component;
49{
50public:
52 std::string name,
53 double const residual_liquid_saturation,
54 double const residual_gas_saturation,
55 double const exponent,
56 double const p_b,
57 double const e_0,
58 double const e_m,
59 double const a,
60 double const d_diff);
61
62 void checkScale() const override
63 {
64 if (!std::holds_alternative<Medium*>(scale_))
65 {
67 "The property 'SaturationVanGenuchtenWithVolumetricStrain' is "
68 "implemented on the 'media' scale only.");
69 }
70 }
71
74 PropertyDataType value(VariableArray const& variable_array,
76 double const t, double const dt) const override;
77 PropertyDataType dValue(VariableArray const& variable_array,
78 Variable const variable,
80 double const t, double const dt) const override;
81
82private:
83 double const S_L_res_;
84 double const S_L_max_;
85 double const m_;
86 double const p_b_;
87 double const e_0_;
88 double const e_m_;
89 double const a_;
90 double const d_diff_;
91};
92} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:26
virtual PropertyDataType value() const
Definition Property.cpp:76
std::variant< Medium *, Phase *, Component * > scale_
Definition Property.h:297
SaturationVanGenuchtenWithVolumetricStrain(std::string name, double const residual_liquid_saturation, double const residual_gas_saturation, double const exponent, double const p_b, double const e_0, double const e_m, double const a, double const d_diff)
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
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