Skip to content
Snippets Groups Projects
Commit 13e1addc authored by Henry's avatar Henry
Browse files

twoPhaseEulerFoam: Corrected potential conservation issue at inlet-outlet BCs

Updated MULES to ensure the limiter is 1 at inlet BCs
parent b9f95987
Branches
Tags
No related merge requests found
......@@ -92,6 +92,12 @@
)
);
alphaPhic1.boundaryField() = min
(
phi1.boundaryField()*alpha1.boundaryField(),
alphaPhic1.boundaryField()
);
MULES::explicitSolve
(
geometricOneField(),
......
......@@ -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];
......
......@@ -28,9 +28,8 @@ boundaryField
outlet
{
type pressureInletOutletVelocity;
phi phi.particles;
value $internalField;
type fixedValue;
value uniform (0 0 0);
}
walls
......
......@@ -6027,8 +6027,7 @@ boundaryField
{
inlet
{
type fixedValue;
value uniform 0;
type zeroGradient;
}
outlet
{
......
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