compressibleVoF,compressibleMultiphaseVoF: Moved Uf correction outside the PISO loop

for efficiency
This commit is contained in:
Henry Weller
2023-04-14 10:18:23 +01:00
parent 5e8d1ff99e
commit d2d3e8710f
2 changed files with 6 additions and 6 deletions

View File

@ -152,9 +152,6 @@ void Foam::solvers::compressibleMultiphaseVoF::pressureCorrector()
}
}
// Correct Uf if the mesh is moving
fvc::correctUf(Uf, U, fvc::absolute(phi, U), MRF);
// Update densities from change in p_rgh
mixture.correctRho(p_rgh - p_rgh_0);
mixture.correct();
@ -164,6 +161,9 @@ void Foam::solvers::compressibleMultiphaseVoF::pressureCorrector()
p_rgh.correctBoundaryConditions();
}
// Correct Uf if the mesh is moving
fvc::correctUf(Uf, U, fvc::absolute(phi, U), MRF);
K = 0.5*magSqr(U);
clearrAU();

View File

@ -211,9 +211,6 @@ void Foam::solvers::compressibleVoF::pressureCorrector()
}
}
// Correct Uf if the mesh is moving
fvc::correctUf(Uf, U, fvc::absolute(phi, U), MRF);
// Update densities from change in p_rgh
mixture_.thermo1().correctRho(psi1*(p_rgh - p_rgh_0));
mixture_.thermo2().correctRho(psi2*(p_rgh - p_rgh_0));
@ -224,6 +221,9 @@ void Foam::solvers::compressibleVoF::pressureCorrector()
p_rgh.correctBoundaryConditions();
}
// Correct Uf if the mesh is moving
fvc::correctUf(Uf, U, fvc::absolute(phi, U), MRF);
K = 0.5*magSqr(U);
clearrAU();