Skip to content
Snippets Groups Projects
Commit a83f78dd authored by Theresa Schollenberger's avatar Theresa Schollenberger Committed by Timo Koch
Browse files

[brookscorey] add regularization for rel. permeability derivatives

parent 7ccff379
No related branches found
No related tags found
1 merge request!1927[brookscorey] add regularization for rel. permeability derivatives
......@@ -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 &params, 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 &params, 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment