Commit 7bd93b6d authored by Philipp Nuske's avatar Philipp Nuske
Browse files

diffusion in the mpnc model:

gas and liquid phases are potentially treated differently. However, the decision was made based on the wettability instead of phase state. This is corrected now. 
reviewed / suggested by Bernd

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@11507 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 69fb2805
......@@ -66,10 +66,10 @@ public:
const unsigned int phaseIdx,
const FluxVariables &fluxVars,
const Scalar molarDensity )
{ // TODO: nPhase does not need to be gas phase.
if (phaseIdx == nPhaseIdx)
{
if ( not FluidSystem::isLiquid(phaseIdx) )
gasFlux_(fluxes, fluxVars, molarDensity);
else if (phaseIdx == wPhaseIdx){
else if ( FluidSystem::isLiquid(phaseIdx) ){
#if MACROSCALE_DIFFUSION_ONLY_GAS
return ; // in the case that only the diffusion in the gas phase is considered, the liquidFlux should not be called
#endif
......
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