Skip to content
Snippets Groups Projects
Commit 27da8171 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

BoxDarcyFluxVariables: use fluid state rather than asking the volume

variables. This avoids having to add multi-phase stuff to single-phase
volume variables.

Suggested and reviewed by Philipp.


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@8734 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent a2a8f557
No related merge requests found
......@@ -181,7 +181,7 @@ private:
// the pressure gradient
Vector tmp(feGrad);
tmp *= elemVolVars[volVarsIdx].pressure(phaseIdx);
tmp *= elemVolVars[volVarsIdx].fluidState().pressure(phaseIdx);
gradPotential += tmp;
}
......@@ -196,10 +196,10 @@ private:
// calculate the phase density at the integration point. we
// only do this if the wetting phase is present in both cells
Scalar SI = elemVolVars[face().i].saturation(phaseIdx);
Scalar SJ = elemVolVars[face().j].saturation(phaseIdx);
Scalar rhoI = elemVolVars[face().i].density(phaseIdx);
Scalar rhoJ = elemVolVars[face().j].density(phaseIdx);
Scalar SI = elemVolVars[face().i].fluidState().saturation(phaseIdx);
Scalar SJ = elemVolVars[face().j].fluidState().saturation(phaseIdx);
Scalar rhoI = elemVolVars[face().i].fluidState().density(phaseIdx);
Scalar rhoJ = elemVolVars[face().j].fluidState().density(phaseIdx);
Scalar fI = std::max(0.0, std::min(SI/1e-5, 0.5));
Scalar fJ = std::max(0.0, std::min(SJ/1e-5, 0.5));
if (fI + fJ == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment