Line |
Branch |
Exec |
Source |
1 |
|
|
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- |
2 |
|
|
// vi: set et ts=4 sw=4 sts=4: |
3 |
|
|
// |
4 |
|
|
// SPDX-FileCopyrightInfo: Copyright © DuMux Project contributors, see AUTHORS.md in root folder |
5 |
|
|
// SPDX-License-Identifier: GPL-3.0-or-later |
6 |
|
|
// |
7 |
|
|
/*! |
8 |
|
|
* \file |
9 |
|
|
* \ingroup Fluidmatrixinteractions |
10 |
|
|
* \brief The Kozeny-Carman relationship for the calculation of a porosity-dependent permeability. |
11 |
|
|
*/ |
12 |
|
|
#ifndef DUMUX_PERMEABILITY_KOZENY_CARMAN_HH |
13 |
|
|
#define DUMUX_PERMEABILITY_KOZENY_CARMAN_HH |
14 |
|
|
|
15 |
|
|
#include <cmath> |
16 |
|
|
#include <dune/common/fmatrix.hh> |
17 |
|
|
#include <dune/common/math.hh> |
18 |
|
|
|
19 |
|
|
namespace Dumux { |
20 |
|
|
|
21 |
|
|
/*! |
22 |
|
|
* \ingroup Fluidmatrixinteractions |
23 |
|
|
* \brief The Kozeny-Carman relationship for the calculation of a porosity-dependent permeability. |
24 |
|
|
* When the porosity is implemented as solution-independent, using this relationship for the |
25 |
|
|
* permeability leads to unnecessary overhead. |
26 |
|
|
* |
27 |
|
|
* \tparam PermeabilityType The type used for the intrinsic permeability |
28 |
|
|
*/ |
29 |
|
|
template<class PermeabilityType> |
30 |
|
|
class PermeabilityKozenyCarman |
31 |
|
|
{ |
32 |
|
|
public: |
33 |
|
|
/*! |
34 |
|
|
* \brief Calculates the permeability for a given sub-control volume |
35 |
|
|
* \param refPerm Reference permeability before porosity changes |
36 |
|
|
* \param refPoro The poro corresponding to the reference permeability |
37 |
|
|
* \param poro The porosity for which permeability is to be evaluated |
38 |
|
|
*/ |
39 |
|
|
template<class Scalar> |
40 |
|
✗ |
PermeabilityType evaluatePermeability(PermeabilityType refPerm, Scalar refPoro, Scalar poro) const |
41 |
|
|
{ |
42 |
|
|
using Dune::power; |
43 |
|
15116618 |
auto factor = power((1.0 - refPoro)/(1.0 - poro), 2) * power(poro/refPoro, 3); |
44 |
|
7558309 |
refPerm *= factor; |
45 |
|
✗ |
return refPerm; |
46 |
|
|
} |
47 |
|
|
}; |
48 |
|
|
|
49 |
|
|
} // namespace Dumux |
50 |
|
|
|
51 |
|
|
#endif |
52 |
|
|
|