OGS
RelativePermeability.h
Go to the documentation of this file.
1
11#pragma once
12
13#include <string>
14#include <limits>
15
16namespace MaterialLib
17{
18namespace PorousMedium
19{
22{
23public:
26 RelativePermeability(const double Sr, const double Smax)
28 {
29 }
30
31 virtual ~RelativePermeability() = default;
32
34 virtual std::string getName() const = 0;
35
38 virtual double getValue(const double saturation) const = 0;
39
42 virtual double getdValue(const double saturation) const = 0;
43
44protected:
47 const double _minor_offset = std::numeric_limits<double>::epsilon();
48
49 const double _saturation_r;
50 const double _saturation_max;
51};
52
53} // namespace PorousMedium
54} // namespace MaterialLib
Base class of relative permeability models.
RelativePermeability(const double Sr, const double Smax)
virtual double getdValue(const double saturation) const =0
virtual std::string getName() const =0
Get model name.
virtual double getValue(const double saturation) const =0