OGS
CapillaryPressureVanGenuchten.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) OpenGeoSys Community (opengeosys.org)
2// SPDX-License-Identifier: BSD-3-Clause
3
4#pragma once
5
7
9{
10class Medium;
11class Phase;
12class Component;
13
35{
36public:
38 double const residual_liquid_saturation,
39 double const residual_gas_saturation,
40 double const exponent,
41 double const p_b,
42 double const maximum_capillary_pressure);
43
44 void checkScale() const override
45 {
46 if (!std::holds_alternative<Medium*>(scale_))
47 {
49 "The property 'CapillaryPressureVanGenuchten' is implemented "
50 "on the 'media' scale only.");
51 }
52 }
53
55 PropertyDataType value(VariableArray const& variable_array,
57 double const t,
58 double const dt) const override;
59
61 PropertyDataType dValue(VariableArray const& variable_array,
62 Variable const variable,
64 double const t,
65 double const dt) const override;
66
67private:
68 double const S_L_res_;
69 double const S_L_max_;
70 double const m_;
71 double const p_b_;
72 double const p_cap_max_;
73};
74} // namespace MaterialPropertyLib
#define OGS_FATAL(...)
Definition Error.h:19
double const S_L_res_
Residual saturation of liquid phase.
PropertyDataType dValue(VariableArray const &variable_array, Variable const variable, ParameterLib::SpatialPosition const &pos, double const t, double const dt) const override
double const S_L_max_
Maximum saturation of liquid phase.
CapillaryPressureVanGenuchten(std::string name, double const residual_liquid_saturation, double const residual_gas_saturation, double const exponent, double const p_b, double const maximum_capillary_pressure)
This class defines components (substances).
Definition Component.h:18
virtual PropertyDataType value() const
std::variant< Medium *, Phase *, Component * > scale_
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