From d54f5ab9ad160b9f9662e815ed6fc18c297dceb6 Mon Sep 17 00:00:00 2001 From: Henry Weller Date: Fri, 10 Jun 2022 12:01:28 +0100 Subject: [PATCH] polyMesh: Changed topoChanging -> topoChanged The topoChanged flag now indicates that the mesh topology has changed at the start of the current time-step rather than it is changing during the run, for subsequent time-steps without topology change it is set false until the next topology change. --- .../compressibleInterFoam/compressibleInterFoam.C | 2 +- .../solvers/multiphase/interFoam/interFoam.C | 2 +- .../multiphaseEulerFoam/multiphaseEulerFoam.C | 2 +- applications/test/hexRef8/Test-hexRef8.C | 4 ++-- src/OpenFOAM/meshes/polyMesh/polyMesh.C | 6 +++--- src/OpenFOAM/meshes/polyMesh/polyMesh.H | 14 +++++++------- .../meshes/polyMesh/polyMeshFromShapeMesh.C | 4 ++-- .../fvMeshDistribute/fvMeshDistribute.C | 6 +++--- .../displacement/points0/points0MotionSolver.C | 2 +- .../polyTopoChange/polyTopoChange/polyTopoChange.C | 4 ++-- src/finiteVolume/cfdTools/general/MRF/MRFZone.C | 2 +- .../cfdTools/general/MRF/MRFZoneList.C | 2 +- src/finiteVolume/fvMesh/fvMesh.C | 6 +++--- .../list/fvMeshTopoChangersList.C | 2 +- src/fvMeshTopoChangers/raw/fvMeshTopoChangersRaw.C | 2 +- .../refiner/fvMeshTopoChangersRefiner.C | 2 +- 16 files changed, 31 insertions(+), 31 deletions(-) diff --git a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterFoam.C b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterFoam.C index 1faeb863a3..c1ae4f5517 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/compressibleInterFoam.C +++ b/applications/solvers/multiphase/compressibleInterFoam/compressibleInterFoam.C @@ -98,7 +98,7 @@ int main(int argc, char *argv[]) // same divergence tmp divU; - if (correctPhi && mesh.topoChanging()) + if (correctPhi && mesh.topoChanged()) { // Construct and register divU for mapping divU = new volScalarField diff --git a/applications/solvers/multiphase/interFoam/interFoam.C b/applications/solvers/multiphase/interFoam/interFoam.C index 67507e2a16..db2366bc86 100644 --- a/applications/solvers/multiphase/interFoam/interFoam.C +++ b/applications/solvers/multiphase/interFoam/interFoam.C @@ -100,7 +100,7 @@ int main(int argc, char *argv[]) ( correctPhi && !isType(phaseChange) - && mesh.topoChanging() + && mesh.topoChanged() ) { // Construct and register divU for correctPhi diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseEulerFoam.C b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseEulerFoam.C index 0a91bcd129..129516d125 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseEulerFoam.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/multiphaseEulerFoam/multiphaseEulerFoam.C @@ -105,7 +105,7 @@ int main(int argc, char *argv[]) // has the same divergence tmp divU; - if (correctPhi && mesh.topoChanging()) + if (correctPhi && mesh.topoChanged()) { // Construct and register divU for mapping divU = new volScalarField diff --git a/applications/test/hexRef8/Test-hexRef8.C b/applications/test/hexRef8/Test-hexRef8.C index 3b1a03d73d..9bb3065f10 100644 --- a/applications/test/hexRef8/Test-hexRef8.C +++ b/applications/test/hexRef8/Test-hexRef8.C @@ -192,7 +192,7 @@ int main(int argc, char *argv[]) mesh.moving(false); - mesh.topoChanging(false); + mesh.topoChanged(false); label action = rndGen.sampleAB