interFoam,compressibleInterFoam,multiphaseEulerFoam: Ensure divU is registered for mapping
divU is cached before mesh-motion and mapped post-motion to drive the optional pcorr flux update to ensure the fluxes are conservative following mesh motion and change.
This commit is contained in:
@ -106,7 +106,8 @@ int main(int argc, char *argv[])
|
||||
|
||||
if (correctPhi)
|
||||
{
|
||||
divU = volScalarField::New
|
||||
// Construct and register divU for mapping
|
||||
divU = new volScalarField
|
||||
(
|
||||
"divU0",
|
||||
fvc::div(fvc::absolute(phi, U))
|
||||
|
||||
@ -111,7 +111,8 @@ int main(int argc, char *argv[])
|
||||
&& !isType<twoPhaseChangeModels::noPhaseChange>(phaseChange)
|
||||
)
|
||||
{
|
||||
divU = volScalarField::New
|
||||
// Construct and register divU for mapping
|
||||
divU = new volScalarField
|
||||
(
|
||||
"divU0",
|
||||
fvc::div(fvc::absolute(phi, U))
|
||||
|
||||
@ -136,7 +136,8 @@ int main(int argc, char *argv[])
|
||||
correctPhi
|
||||
)
|
||||
{
|
||||
divU = volScalarField::New
|
||||
// Construct and register divU for mapping
|
||||
divU = new volScalarField
|
||||
(
|
||||
"divU0",
|
||||
fvc::div
|
||||
|
||||
Reference in New Issue
Block a user