twoPhaseEulerFoam: rationalize handling of fixed-flux BC update
This commit is contained in:
@ -91,27 +91,9 @@ while (pimple.correct())
|
||||
// Update continuity errors due to temperature changes
|
||||
#include "correctContErrs.H"
|
||||
|
||||
// Correct flux BCs to be consistent with the velocity BCs
|
||||
forAll(mesh.boundary(), patchi)
|
||||
{
|
||||
if (isA<fixedValueFvsPatchScalarField>(phi1.boundaryField()[patchi]))
|
||||
{
|
||||
phi1.boundaryField()[patchi] ==
|
||||
mrfZones.relative
|
||||
(
|
||||
mesh.Sf().boundaryField() & U1.boundaryField()
|
||||
)()[patchi];
|
||||
}
|
||||
|
||||
if (isA<fixedValueFvsPatchScalarField>(phi2.boundaryField()[patchi]))
|
||||
{
|
||||
phi2.boundaryField()[patchi] ==
|
||||
mrfZones.relative
|
||||
(
|
||||
mesh.Sf().boundaryField() & U2.boundaryField()
|
||||
)()[patchi];
|
||||
}
|
||||
}
|
||||
// Correct fixed-flux BCs to be consistent with the velocity BCs
|
||||
mrfZones.correctBoundaryFlux(U1, phi1);
|
||||
mrfZones.correctBoundaryFlux(U2, phi2);
|
||||
|
||||
volVectorField HbyA1
|
||||
(
|
||||
|
||||
@ -99,26 +99,8 @@ while (pimple.correct())
|
||||
surfaceScalarField rhof2(fvc::interpolate(rho2));
|
||||
|
||||
// Correct fixed-flux BCs to be consistent with the velocity BCs
|
||||
forAll(mesh.boundary(), patchi)
|
||||
{
|
||||
if (isA<fixedValueFvsPatchScalarField>(phi1.boundaryField()[patchi]))
|
||||
{
|
||||
phi1.boundaryField()[patchi] ==
|
||||
mrfZones.relative
|
||||
(
|
||||
mesh.Sf().boundaryField() & U1.boundaryField()
|
||||
)()[patchi];
|
||||
}
|
||||
|
||||
if (isA<fixedValueFvsPatchScalarField>(phi2.boundaryField()[patchi]))
|
||||
{
|
||||
phi2.boundaryField()[patchi] ==
|
||||
mrfZones.relative
|
||||
(
|
||||
mesh.Sf().boundaryField() & U2.boundaryField()
|
||||
)()[patchi];
|
||||
}
|
||||
}
|
||||
mrfZones.correctBoundaryFlux(U1, phi1);
|
||||
mrfZones.correctBoundaryFlux(U2, phi2);
|
||||
|
||||
surfaceScalarField alpharAUf1
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user