This is a policy for 2p material laws how to convert absolute to relative saturations and vice versa.
More...
#include <dumux/material/fluidmatrixinteractions/2p/efftoabsdefaultpolicy.hh>
This is a policy for 2p material laws how to convert absolute to relative saturations and vice versa.
Material laws (like VanGenuchten or BrooksCorey) are defined for effective saturations. The numeric calculations however are performed with absolute saturations. The policy class converts the saturations. This allows for changing the calculation of the effective saturations easily, as this is subject of discussion / may be problem specific.
|
template<class Scalar > |
static Params< Scalar > | makeParams (const std::string ¶mGroup) |
| Construct from a subgroup from the global parameter tree. More...
|
|
template<class Scalar > |
static Scalar | swToSwe (const Scalar sw, const Params< Scalar > ¶ms) |
| Convert an absolute wetting saturation to an effective one. More...
|
|
template<class Scalar > |
static Scalar | sweToSw (const Scalar swe, const Params< Scalar > ¶ms) |
| Convert an effective wetting saturation to an absolute one. More...
|
|
template<class Scalar > |
static Scalar | dswe_dsw (const Params< Scalar > ¶ms) |
| Derivative of the effective saturation w.r.t. the absolute saturation. More...
|
|
template<class Scalar > |
static Scalar | dsw_dswe (const Params< Scalar > ¶ms) |
| Derivative of the absolute saturation w.r.t. the effective saturation. More...
|
|
◆ dsw_dswe()
template<class Scalar >
static Scalar Dumux::FluidMatrix::TwoPEffToAbsDefaultPolicy::dsw_dswe |
( |
const Params< Scalar > & |
params | ) |
|
|
inlinestatic |
Derivative of the absolute saturation w.r.t. the effective saturation.
- Parameters
-
params | A container object that is populated with the appropriate coefficients for the respective law. Therefore, in the (problem specific) spatialParameters first, the material law is chosen, and then the params container is constructed accordingly. Afterwards the values are set there, too. |
- Returns
- Derivative of the absolute saturation w.r.t. the effective saturation.
◆ dswe_dsw()
template<class Scalar >
static Scalar Dumux::FluidMatrix::TwoPEffToAbsDefaultPolicy::dswe_dsw |
( |
const Params< Scalar > & |
params | ) |
|
|
inlinestatic |
Derivative of the effective saturation w.r.t. the absolute saturation.
- Parameters
-
params | A container object that is populated with the appropriate coefficients for the respective law. Therefore, in the (problem specific) spatialParameters first, the material law is chosen, and then the params container is constructed accordingly. Afterwards the values are set there, too. |
- Returns
- Derivative of the effective saturation w.r.t. the absolute saturation.
◆ makeParams()
template<class Scalar >
static Params< Scalar > Dumux::FluidMatrix::TwoPEffToAbsDefaultPolicy::makeParams |
( |
const std::string & |
paramGroup | ) |
|
|
inlinestatic |
Construct from a subgroup from the global parameter tree.
- Note
- This will give you nice error messages if a mandatory parameter is missing
◆ sweToSw()
template<class Scalar >
static Scalar Dumux::FluidMatrix::TwoPEffToAbsDefaultPolicy::sweToSw |
( |
const Scalar |
swe, |
|
|
const Params< Scalar > & |
params |
|
) |
| |
|
inlinestatic |
Convert an effective wetting saturation to an absolute one.
- Parameters
-
swe | Effective saturation of the non-wetting phase \(\mathrm{[\overline{S}_n]}\). |
params | A container object that is populated with the appropriate coefficients for the respective law. Therefore, in the (problem specific) spatialParameters first, the material law is chosen, and then the params container is constructed accordingly. Afterwards the values are set there, too. |
- Returns
- Absolute saturation of the non-wetting phase.
◆ swToSwe()
template<class Scalar >
static Scalar Dumux::FluidMatrix::TwoPEffToAbsDefaultPolicy::swToSwe |
( |
const Scalar |
sw, |
|
|
const Params< Scalar > & |
params |
|
) |
| |
|
inlinestatic |
Convert an absolute wetting saturation to an effective one.
- Parameters
-
sw | Absolute saturation of the wetting phase \(\mathrm{[{S}_w]}\). |
params | A container object that is populated with the appropriate coefficients for the respective law. Therefore, in the (problem specific) spatialParameters first, the material law is chosen, and then the params container is constructed accordingly. Afterwards the values are set there, too. |
- Returns
- Effective saturation of the wetting phase.
The documentation for this class was generated from the following file: