twoPhaseEulerFoam: Corrected potential conservation issue at inlet-outlet BCs

Updated MULES to ensure the limiter is 1 at inlet BCs
This commit is contained in:
Henry
2013-08-15 17:03:52 +01:00
parent b9f9598725
commit 13e1addc35
4 changed files with 12 additions and 7 deletions

View File

@ -92,6 +92,12 @@
)
);
alphaPhic1.boundaryField() = min
(
phi1.boundaryField()*alpha1.boundaryField(),
alphaPhic1.boundaryField()
);
MULES::explicitSolve
(
geometricOneField(),

View File

@ -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];

View File

@ -28,9 +28,8 @@ boundaryField
outlet
{
type pressureInletOutletVelocity;
phi phi.particles;
value $internalField;
type fixedValue;
value uniform (0 0 0);
}
walls

View File

@ -6027,8 +6027,7 @@ boundaryField
{
inlet
{
type fixedValue;
value uniform 0;
type zeroGradient;
}
outlet
{