solvers: Added ddtCorr support in MRF regions by extending the use of Uf and rhoUf

to provide the old-time absolute flux.  This avoids possible
pressure-velocity-flux decoupling (staggering) within the MRF region using
ddtCorr to better couple the velocity and flux fields.
This commit is contained in:
Henry Weller
2023-03-24 17:23:14 +00:00
parent 2e761c31ef
commit e98dcc5aa8
28 changed files with 203 additions and 166 deletions

View File

@ -121,10 +121,13 @@ Foam::solvers::VoFSolver::VoFSolver
{
mesh.schemes().setFluxRequired(p_rgh.name());
if (mesh.dynamic())
if (mesh.dynamic() || MRF.size())
{
Info<< "Constructing face momentum Uf" << endl;
// Ensure the U BCs are up-to-date before constructing Uf
U_.correctBoundaryConditions();
Uf = new surfaceVectorField
(
IOobject