24#ifndef DUMUX_MATERIAL_DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
25#define DUMUX_MATERIAL_DIFFUSIVITY_CONSTANT_TORTUOSITY_HH
58 [[deprecated(
"Signature deprecated. Use effectiveDiffusionCoefficient(volvars, phaseIdx, comp1dxI, compIdxJ)!")]]
61 const Scalar diffCoeff)
63 static const Scalar tau = getParam<Scalar>(
"SpatialParams.Tortuosity", 0.5);
75 template<
class VolumeVariables>
81 static const Scalar tau = getParam<Scalar>(
"SpatialParams.Tortuosity", 0.5);
82 const Scalar diffCoeff = volVars.diffusionCoefficient(phaseIdx, compIdxI, compIdxJ);
83 return volVars.porosity() * volVars.saturation(phaseIdx) * tau * diffCoeff;
The infrastructure to retrieve run-time parameters from Dune::ParameterTrees.
std::string saturation(int phaseIdx) noexcept
I/O name of saturation for multiphase systems.
Definition: name.hh:43
std::string porosity() noexcept
I/O name of porosity.
Definition: name.hh:139
Relation for the saturation-dependent effective diffusion coefficient.
Definition: diffusivityconstanttortuosity.hh:49
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:76
static Scalar effectiveDiffusivity(const Scalar porosity, const Scalar saturation, const Scalar diffCoeff)
Returns the effective diffusion coefficient based on a constant tortuosity value.
Definition: diffusivityconstanttortuosity.hh:59