diff --git a/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H b/applications/solvers/multiphase/twoPhaseEulerFoam/alphaEqn.H index 77a04592e329b4f25babaf8edbc0977668eb5c3f..f4b97ccd9c551677baa932fb7e8719680f1d4fb1 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 e0718f923a91b2d3f26fd7db813447c8f9822f8d..53b64a5f7b550df925f57ca7ea74406ff81a0602 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 95abcf62b37fe1a1613711e17040560e5d1d4ed9..fa0397ae355df01d3b11bdd17eda31f4c5ed636a 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 7a433521e861c4f7cbbef4f4b0066c5491b41914..cf55161b4a5c380ee0bd2ce31687f4af99e2cd5d 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 {