compressibleVoF,compressibleMultiphaseVoF: Moved Uf correction outside the PISO loop
for efficiency
This commit is contained in:
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user