mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user