diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H b/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H index 77a04592e3..f4b97ccd9c 100644 --- a/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H +++ b/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H @@ -92,6 +92,12 @@ ) ); + alphaPhic1.boundaryField() = min + ( + phi1.boundaryField()*alpha1.boundaryField(), + alphaPhic1.boundaryField() + ); + MULES::explicitSolve ( geometricOneField(), diff --git a/src/finiteVolume/fvMatrices/solvers/MULES/MULESTemplates.C b/src/finiteVolume/fvMatrices/solvers/MULES/MULESTemplates.C index e0718f923a..53b64a5f7b 100644 --- a/src/finiteVolume/fvMatrices/solvers/MULES/MULESTemplates.C +++ b/src/finiteVolume/fvMatrices/solvers/MULES/MULESTemplates.C @@ -485,11 +485,12 @@ void Foam::MULES::limiter const labelList& pFaceCells = mesh.boundary()[patchi].faceCells(); const scalarField& phiBDPf = phiBDBf[patchi]; + const scalarField& phiCorrPf = phiCorrBf[patchi]; forAll(lambdaPf, pFacei) { // Limit outlet faces only - if (phiBDPf[pFacei] > 0) + if ((phiBDPf[pFacei] + phiCorrPf[pFacei]) > SMALL*SMALL) { label pfCelli = pFaceCells[pFacei]; @@ -862,7 +863,7 @@ void Foam::MULES::limiterCorr forAll(lambdaPf, pFacei) { // Limit outlet faces only - if (phiCorrPf[pFacei] > 0) + if (phiCorrPf[pFacei] > SMALL*SMALL) { label pfCelli = pFaceCells[pFacei]; diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/0/U.particles b/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/0/U.particles index 95abcf62b3..fa0397ae35 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/0/U.particles +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/0/U.particles @@ -28,9 +28,8 @@ boundaryField outlet { - type pressureInletOutletVelocity; - phi phi.particles; - value $internalField; + type fixedValue; + value uniform (0 0 0); } walls diff --git a/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/0/alpha.particles b/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/0/alpha.particles index 7a433521e8..cf55161b4a 100644 --- a/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/0/alpha.particles +++ b/tutorials/multiphase/twoPhaseEulerFoam/laminar/fluidisedBed/0/alpha.particles @@ -6027,8 +6027,7 @@ boundaryField { inlet { - type fixedValue; - value uniform 0; + type zeroGradient; } outlet {