version 3.8
diffusivityconstanttortuosity.hh
Go to the documentation of this file.
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//
12#ifndef DUMUX_MATERIAL_DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
13#define DUMUX_MATERIAL_DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
14
16
17namespace Dumux {
18
35template<class Scalar>
37{
38public:
47 template<class VolumeVariables>
48 static Scalar effectiveDiffusionCoefficient(const VolumeVariables& volVars,
49 const int phaseIdx,
50 const int compIdxI,
51 const int compIdxJ)
52 {
53 static const Scalar tau = getParam<Scalar>("SpatialParams.Tortuosity", 0.5);
54 const Scalar diffCoeff = volVars.diffusionCoefficient(phaseIdx, compIdxI, compIdxJ);
55 return volVars.porosity() * volVars.saturation(phaseIdx) * tau * diffCoeff;
56 }
57
58};
59} // end namespace Dumux
60
61#endif
Relation for the saturation-dependent effective diffusion coefficient.
Definition: diffusivityconstanttortuosity.hh:37
static Scalar effectiveDiffusionCoefficient(const VolumeVariables &volVars, const int phaseIdx, const int compIdxI, const int compIdxJ)
Returns the effective diffusion coefficient based on a constant tortuosity value.
Definition: diffusivityconstanttortuosity.hh:48
Definition: adapt.hh:17
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.