version 3.9
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//
7#ifndef DUMUX_MATERIAL_DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
8#define DUMUX_MATERIAL_DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
9
11
12namespace Dumux {
13
32template<class Scalar>
34{
35public:
48 template<class VolumeVariables>
49 static Scalar effectiveDiffusionCoefficient(const VolumeVariables& volVars,
50 const int phaseIdx,
51 const int compIdxI,
52 const int compIdxJ)
53 {
54 static const Scalar tau = getParam<Scalar>("SpatialParams.Tortuosity", 0.5);
55 const Scalar diffCoeff = volVars.diffusionCoefficient(phaseIdx, compIdxI, compIdxJ);
56 return volVars.porosity() * volVars.saturation(phaseIdx) * tau * diffCoeff;
57 }
58
59};
60} // end namespace Dumux
61
62#endif
Relation for the effective diffusion coefficient with constant tortuosity.
Definition: diffusivityconstanttortuosity.hh:34
static Scalar effectiveDiffusionCoefficient(const VolumeVariables &volVars, const int phaseIdx, const int compIdxI, const int compIdxJ)
Returns the effective diffusion coefficient ( )
Definition: diffusivityconstanttortuosity.hh:49
Definition: adapt.hh:17
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.