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)!")]]
60 const Scalar saturation,
61 const Scalar diffCoeff)
64 return porosity * saturation * tau * diffCoeff;
75 template<
class VolumeVariables>
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.
T getParam(Args &&... args)
A free function to get a parameter from the parameter tree singleton.
Definition parameters.hh:365
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