Commit c2d72c4d authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Kilian Weishaupt
Browse files

[boxfickslawdispersion] Use effDiff values from volVars

parent 96165205
......@@ -175,13 +175,10 @@ public:
continue;
// effective diffusion tensors
using EffDiffModel = GetPropType<TypeTag, Properties::EffectiveDiffusivityModel>;
auto insideD = EffDiffModel::effectiveDiffusivity(insideVolVars.porosity(),
insideVolVars.saturation(phaseIdx),
insideVolVars.diffusionCoefficient(phaseIdx, compIdx));
auto outsideD = EffDiffModel::effectiveDiffusivity(outsideVolVars.porosity(),
outsideVolVars.saturation(phaseIdx),
outsideVolVars.diffusionCoefficient(phaseIdx, compIdx));
const auto mainCompIdx = FluidSystem::getMainComponent(phaseIdx);
auto insideD = insideVolVars.effectiveDiffusionCoefficient(phaseIdx, mainCompIdx, compIdx);
auto outsideD = outsideVolVars.effectiveDiffusionCoefficient(phaseIdx, mainCompIdx, compIdx);
// scale by extrusion factor
insideD *= insideVolVars.extrusionFactor();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment