Skip to content
Snippets Groups Projects
Commit 7357da14 authored by Klaus Mosthaf's avatar Klaus Mosthaf
Browse files

Added deprecation warning and include in diffusivitymillingtonquirk.hh, which...

Added deprecation warning and include in diffusivitymillingtonquirk.hh, which was moved one folder up

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@11807 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent f5099c2d
No related branches found
No related tags found
No related merge requests found
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
*
* \brief Relation for the saturation-dependent effective diffusion coefficient
*/
#ifndef DIFFUSIVITY_MILLINGTON_QUIRK_HH
#define DIFFUSIVITY_MILLINGTON_QUIRK_HH
#warning This file is deprecated. Include dumux/material/fluidmatrixinteractions/diffusivitymillingtonquirk.hh instead.
#include <algorithm>
namespace Dumux
{
/*!
* \ingroup fluidmatrixinteractionslaws
*
* \brief Relation for the saturation-dependent effective diffusion coefficient
*
*
* The material law is:
* \f[
\lambda_\text{eff} = \phi * S_w * \tau * D
\f]
*
* with
* \f[
\tau = \frac{1}{\phi^2} * \left(\phi S_w\right)^{7/3}
\f]
*
*/
template<class Scalar>
class DiffusivityMillingtonQuirk
{
public:
/*!
* \brief Returns the effective diffusion coefficient \f$[m/s]\f$ after Millington Quirk.
*
* \param porosity The porosity
* \param saturation The saturation of the phase
* \param diffCoeff The diffusion coefficient of the phase
*
*/
static Scalar effectiveDiffusivity(const Scalar porosity,
const Scalar saturation,
const Scalar diffCoeff)
{
Scalar tau = 1.0/(porosity * porosity) *
pow(porosity * saturation, 7.0/3);
return porosity * saturation * tau * diffCoeff;
}
};
}
#endif
#include <dumux/material/fluidmatrixinteractions/diffusivitymillingtonquirk.hh>
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