diff --git a/dumux/material/fluidmatrixinteractions/2p/regularizedbrookscorey.hh b/dumux/material/fluidmatrixinteractions/2p/regularizedbrookscorey.hh index 973f850a49be6f66986b0280f5358978eb3ef7e9..742bd0ebb91a93617312a3a2b650c0a4889121c8 100644 --- a/dumux/material/fluidmatrixinteractions/2p/regularizedbrookscorey.hh +++ b/dumux/material/fluidmatrixinteractions/2p/regularizedbrookscorey.hh @@ -263,6 +263,25 @@ public: return BrooksCorey::krw(params, swe); } + /*! + * \brief A regularized version of the derivative of the relative + * permeability for the wetting phase in regard to the wetting + * saturation of the medium implied by the Brooks-Corey parameterization. + * + * \copydetails BrooksCorey::dkrw_dswe() + */ + static Scalar dkrw_dswe(const Params ¶ms, Scalar swe) + { + // derivative of the regularization + // the slope is zero below sw=0.0 and above sw=1.0 + if (swe <= 0.0) + return 0.0; + else if (swe >= 1.0) + return 0.0; + + return BrooksCorey::dkrw_dswe(params, swe); + } + /*! * \brief Regularized version of the relative permeability * for the non-wetting phase of @@ -286,6 +305,25 @@ public: return BrooksCorey::krn(params, swe); } + + /*! + * \brief A regularized version of the derivative of the relative permeability + * for the non-wetting phase in regard to the wetting saturation of + * the medium as implied by the Brooks-Corey parameterization. + * + * \copydetails BrooksCorey::dkrn_dswe() + */ + static Scalar dkrn_dswe(const Params ¶ms, Scalar swe) + { + // derivative of the regularization + // the slope is zero below sw=0.0 and above sw=1.0 + if (swe <= 0) + return 0.0; + else if (swe >= 1) + return 0.0; + + return BrooksCorey::dkrn_dswe(params, swe); + } }; } // end namespace Dumux