diff --git a/applications/solvers/multiphase/compressibleInterFoam/VoFClouds/VoFClouds.C b/applications/solvers/multiphase/compressibleInterFoam/VoFClouds/VoFClouds.C index af38397fb3..8dd73a6272 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/VoFClouds/VoFClouds.C +++ b/applications/solvers/multiphase/compressibleInterFoam/VoFClouds/VoFClouds.C @@ -162,7 +162,11 @@ void Foam::fv::VoFClouds::preUpdateMesh() } -void Foam::fv::VoFClouds::updateMesh(const polyTopoChangeMap&) +void Foam::fv::VoFClouds::topoChange(const polyTopoChangeMap&) +{} + + +void Foam::fv::VoFClouds::mapMesh(const polyMeshMap& map) {} diff --git a/applications/solvers/multiphase/compressibleInterFoam/VoFClouds/VoFClouds.H b/applications/solvers/multiphase/compressibleInterFoam/VoFClouds/VoFClouds.H index 1256d6fb49..ed5c571da1 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/VoFClouds/VoFClouds.H +++ b/applications/solvers/multiphase/compressibleInterFoam/VoFClouds/VoFClouds.H @@ -148,8 +148,11 @@ public: //- Prepare for mesh update virtual void preUpdateMesh(); - //- Update for mesh changes - virtual void updateMesh(const polyTopoChangeMap&); + //- Update topology using the given map + virtual void topoChange(const polyTopoChangeMap&); + + //- Update from another mesh using the given map + virtual void mapMesh(const polyMeshMap&); //- Redistribute or update using the given distribution map virtual void distribute(const polyDistributionMap&); diff --git a/applications/solvers/multiphase/compressibleInterFoam/VoFSolidificationMeltingSource/VoFSolidificationMeltingSource.C b/applications/solvers/multiphase/compressibleInterFoam/VoFSolidificationMeltingSource/VoFSolidificationMeltingSource.C index 75410a533e..2cb983a7f9 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/VoFSolidificationMeltingSource/VoFSolidificationMeltingSource.C +++ b/applications/solvers/multiphase/compressibleInterFoam/VoFSolidificationMeltingSource/VoFSolidificationMeltingSource.C @@ -222,12 +222,18 @@ void Foam::fv::VoFSolidificationMeltingSource::correct() } -void Foam::fv::VoFSolidificationMeltingSource::updateMesh +void Foam::fv::VoFSolidificationMeltingSource::topoChange ( const polyTopoChangeMap& map ) { - set_.updateMesh(map); + set_.topoChange(map); +} + + +void Foam::fv::VoFSolidificationMeltingSource::mapMesh(const polyMeshMap& map) +{ + set_.mapMesh(map); } diff --git a/applications/solvers/multiphase/compressibleInterFoam/VoFSolidificationMeltingSource/VoFSolidificationMeltingSource.H b/applications/solvers/multiphase/compressibleInterFoam/VoFSolidificationMeltingSource/VoFSolidificationMeltingSource.H index 384bd456d1..3ad77e8564 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/VoFSolidificationMeltingSource/VoFSolidificationMeltingSource.H +++ b/applications/solvers/multiphase/compressibleInterFoam/VoFSolidificationMeltingSource/VoFSolidificationMeltingSource.H @@ -190,8 +190,11 @@ public: // Mesh motion - //- Update for mesh changes - virtual void updateMesh(const polyTopoChangeMap&); + //- Update topology using the given map + virtual void topoChange(const polyTopoChangeMap&); + + //- Update from another mesh using the given map + virtual void mapMesh(const polyMeshMap&); //- Redistribute or update using the given distribution map virtual void distribute(const polyDistributionMap&); diff --git a/applications/solvers/multiphase/compressibleInterFoam/VoFSurfaceFilm/VoFSurfaceFilm.C b/applications/solvers/multiphase/compressibleInterFoam/VoFSurfaceFilm/VoFSurfaceFilm.C index 3924f0aa8f..dd63abf084 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/VoFSurfaceFilm/VoFSurfaceFilm.C +++ b/applications/solvers/multiphase/compressibleInterFoam/VoFSurfaceFilm/VoFSurfaceFilm.C @@ -153,7 +153,13 @@ void Foam::fv::VoFSurfaceFilm::addSup } -void Foam::fv::VoFSurfaceFilm::updateMesh(const polyTopoChangeMap&) +void Foam::fv::VoFSurfaceFilm::topoChange(const polyTopoChangeMap&) +{ + NotImplemented; +} + + +void Foam::fv::VoFSurfaceFilm::mapMesh(const polyMeshMap& map) { NotImplemented; } diff --git a/applications/solvers/multiphase/compressibleInterFoam/VoFSurfaceFilm/VoFSurfaceFilm.H b/applications/solvers/multiphase/compressibleInterFoam/VoFSurfaceFilm/VoFSurfaceFilm.H index 3a2d71b54d..6f25b0b197 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/VoFSurfaceFilm/VoFSurfaceFilm.H +++ b/applications/solvers/multiphase/compressibleInterFoam/VoFSurfaceFilm/VoFSurfaceFilm.H @@ -135,8 +135,11 @@ public: // Mesh changes - //- Update for mesh changes - virtual void updateMesh(const polyTopoChangeMap&); + //- Update topology using the given map + virtual void topoChange(const polyTopoChangeMap&); + + //- Update from another mesh using the given map + virtual void mapMesh(const polyMeshMap&); //- Redistribute or update using the given distribution map virtual void distribute(const polyDistributionMap&); diff --git a/applications/solvers/multiphase/compressibleInterFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.C b/applications/solvers/multiphase/compressibleInterFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.C index 4e04df9008..17b6d87a98 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.C +++ b/applications/solvers/multiphase/compressibleInterFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.C @@ -207,7 +207,11 @@ void Foam::fv::VoFTurbulenceDamping::addSup } -void Foam::fv::VoFTurbulenceDamping::updateMesh(const polyTopoChangeMap&) +void Foam::fv::VoFTurbulenceDamping::topoChange(const polyTopoChangeMap&) +{} + + +void Foam::fv::VoFTurbulenceDamping::mapMesh(const polyMeshMap& map) {} diff --git a/applications/solvers/multiphase/compressibleInterFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.H b/applications/solvers/multiphase/compressibleInterFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.H index 92a125d479..c2faeabcc6 100644 --- a/applications/solvers/multiphase/compressibleInterFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.H +++ b/applications/solvers/multiphase/compressibleInterFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.H @@ -174,8 +174,11 @@ public: // Mesh changes - //- Update for mesh changes - virtual void updateMesh(const polyTopoChangeMap&); + //- Update topology using the given map + virtual void topoChange(const polyTopoChangeMap&); + + //- Update from another mesh using the given map + virtual void mapMesh(const polyMeshMap&); //- Redistribute or update using the given distribution map virtual void distribute(const polyDistributionMap&); diff --git a/applications/solvers/multiphase/interFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.C b/applications/solvers/multiphase/interFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.C index 7fb3bec588..1150e4149d 100644 --- a/applications/solvers/multiphase/interFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.C +++ b/applications/solvers/multiphase/interFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.C @@ -202,7 +202,11 @@ void Foam::fv::VoFTurbulenceDamping::addSup } -void Foam::fv::VoFTurbulenceDamping::updateMesh(const polyTopoChangeMap&) +void Foam::fv::VoFTurbulenceDamping::topoChange(const polyTopoChangeMap&) +{} + + +void Foam::fv::VoFTurbulenceDamping::mapMesh(const polyMeshMap& map) {} diff --git a/applications/solvers/multiphase/interFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.H b/applications/solvers/multiphase/interFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.H index 0d10cef578..f80178999a 100644 --- a/applications/solvers/multiphase/interFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.H +++ b/applications/solvers/multiphase/interFoam/VoFTurbulenceDamping/VoFTurbulenceDamping.H @@ -173,8 +173,11 @@ public: // Mesh changes - //- Update for mesh changes - virtual void updateMesh(const polyTopoChangeMap&); + //- Update topology using the given map + virtual void topoChange(const polyTopoChangeMap&); + + //- Update from another mesh using the given map + virtual void mapMesh(const polyMeshMap&); //- Redistribute or update using the given distribution map virtual void distribute(const polyDistributionMap&); diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/interfaceTurbulenceDamping/interfaceTurbulenceDamping.C b/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/interfaceTurbulenceDamping/interfaceTurbulenceDamping.C index 5f389e06b4..366d4307bb 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/interfaceTurbulenceDamping/interfaceTurbulenceDamping.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/interfaceTurbulenceDamping/interfaceTurbulenceDamping.C @@ -304,7 +304,11 @@ void Foam::fv::interfaceTurbulenceDamping::addSup } -void Foam::fv::interfaceTurbulenceDamping::updateMesh(const polyTopoChangeMap&) +void Foam::fv::interfaceTurbulenceDamping::topoChange(const polyTopoChangeMap&) +{} + + +void Foam::fv::interfaceTurbulenceDamping::mapMesh(const polyMeshMap& map) {} diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/interfaceTurbulenceDamping/interfaceTurbulenceDamping.H b/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/interfaceTurbulenceDamping/interfaceTurbulenceDamping.H index 9e8906baee..674bdb13c4 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/interfaceTurbulenceDamping/interfaceTurbulenceDamping.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/interfaceTurbulenceDamping/interfaceTurbulenceDamping.H @@ -194,8 +194,11 @@ public: // Mesh changes - //- Update for mesh changes - virtual void updateMesh(const polyTopoChangeMap&); + //- Update topology using the given map + virtual void topoChange(const polyTopoChangeMap&); + + //- Update from another mesh using the given map + virtual void mapMesh(const polyMeshMap&); //- Redistribute or update using the given distribution map virtual void distribute(const polyDistributionMap&); diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.C b/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.C index 001d6b08c1..aedf57a0fc 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.C +++ b/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.C @@ -235,13 +235,17 @@ void Foam::fv::phaseTurbulenceStabilisation::addSup } -void Foam::fv::phaseTurbulenceStabilisation::updateMesh +void Foam::fv::phaseTurbulenceStabilisation::topoChange ( const polyTopoChangeMap& ) {} +void Foam::fv::phaseTurbulenceStabilisation::mapMesh(const polyMeshMap& map) +{} + + void Foam::fv::phaseTurbulenceStabilisation::distribute ( const polyDistributionMap& diff --git a/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.H b/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.H index 74938b74cf..be0e699cad 100644 --- a/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.H +++ b/applications/solvers/multiphase/multiphaseEulerFoam/fvModels/phaseTurbulenceStabilisation/phaseTurbulenceStabilisation.H @@ -164,8 +164,11 @@ public: // Mesh changes - //- Update for mesh changes - virtual void updateMesh(const polyTopoChangeMap&); + //- Update topology using the given map + virtual void topoChange(const polyTopoChangeMap&); + + //- Update from another mesh using the given map + virtual void mapMesh(const polyMeshMap&); //- Redistribute or update using the given distribution map virtual void distribute(const polyDistributionMap&); diff --git a/applications/test/fieldMapping/Test-fieldMapping.C b/applications/test/fieldMapping/Test-fieldMapping.C index a7fcf709a5..fedbf67e17 100644 --- a/applications/test/fieldMapping/Test-fieldMapping.C +++ b/applications/test/fieldMapping/Test-fieldMapping.C @@ -200,7 +200,7 @@ int main(int argc, char *argv[]) autoPtr map = meshMod.changeMesh(mesh, inflate); Info<< "Mapping fields" << nl << endl; - mesh.updateMesh(map); + mesh.topoChange(map); // Move mesh (since morphing does not do this) if (map().hasMotionPoints()) @@ -210,7 +210,7 @@ int main(int argc, char *argv[]) } // Update numbering of cells/vertices. - faceRemover.updateMesh(map); + faceRemover.topoChange(map); Info<< "Writing fields" << nl << endl; diff --git a/applications/test/hexRef8/Test-hexRef8.C b/applications/test/hexRef8/Test-hexRef8.C index 1d570f533e..3b1a03d73d 100644 --- a/applications/test/hexRef8/Test-hexRef8.C +++ b/applications/test/hexRef8/Test-hexRef8.C @@ -277,7 +277,7 @@ int main(int argc, char *argv[]) // Update fields Info<< nl << "-- mapping mesh data" << endl; - mesh.updateMesh(map); + mesh.topoChange(map); // Inflate mesh if (map().hasMotionPoints()) @@ -288,7 +288,7 @@ int main(int argc, char *argv[]) // Update numbering of cells/vertices. Info<< nl << "-- mapping hexRef8 data" << endl; - meshCutter.updateMesh(map); + meshCutter.topoChange(map); } diff --git a/applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C b/applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C index 4cf0cac8f4..ef6b064ac3 100644 --- a/applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C +++ b/applications/utilities/mesh/advanced/PDRMesh/PDRMesh.C @@ -1075,7 +1075,7 @@ int main(int argc, char *argv[]) meshMod.changeMesh(subsetter.subMesh(), false); // Update fields - subsetter.subMesh().updateMesh(map); + subsetter.subMesh().topoChange(map); // Fix faces that get mapped to zero-sized patches (these don't get any // value) diff --git a/applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C b/applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C index 4e8d11efef..2a5501b814 100644 --- a/applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C +++ b/applications/utilities/mesh/advanced/autoRefineMesh/autoRefineMesh.C @@ -521,7 +521,7 @@ void subsetMesh } // Update topology on cellRemover - cellRemover.updateMesh(map()); + cellRemover.topoChange(map()); // Update refLevel for removed cells. const labelList& cellMap = map().cellMap(); @@ -547,7 +547,7 @@ void subsetMesh } // Update cutCells for removed cells. - cutCells.updateMesh(map()); + cutCells.topoChange(map()); } diff --git a/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C b/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C index 14857e23a8..4d699aa3c6 100644 --- a/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C +++ b/applications/utilities/mesh/advanced/combinePatchFaces/combinePatchFaces.C @@ -108,7 +108,7 @@ label mergePatchFaces map = meshMod.changeMesh(mesh, false, true); // Update fields - mesh.updateMesh(map); + mesh.topoChange(map); // Move mesh (since morphing does not do this) if (map().hasMotionPoints()) @@ -264,7 +264,7 @@ label mergePatchFaces map = meshMod.changeMesh(mesh, false, true); // Update fields - mesh.updateMesh(map); + mesh.topoChange(map); // Move mesh (since morphing does not do this) if (map().hasMotionPoints()) @@ -317,7 +317,7 @@ label mergeEdges(const scalar minCos, polyMesh& mesh) autoPtr map = meshMod.changeMesh(mesh, false, true); // Update fields - mesh.updateMesh(map); + mesh.topoChange(map); // Move mesh (since morphing does not do this) if (map().hasMotionPoints()) diff --git a/applications/utilities/mesh/advanced/modifyMesh/cellSplitter.C b/applications/utilities/mesh/advanced/modifyMesh/cellSplitter.C index f70d27f45a..fefbac70ef 100644 --- a/applications/utilities/mesh/advanced/modifyMesh/cellSplitter.C +++ b/applications/utilities/mesh/advanced/modifyMesh/cellSplitter.C @@ -461,7 +461,7 @@ void Foam::cellSplitter::setRefinement } -void Foam::cellSplitter::updateMesh(const polyTopoChangeMap& map) +void Foam::cellSplitter::topoChange(const polyTopoChangeMap& map) { // Create copy since we're deleting entries. Only if both cell and added // point get mapped do they get inserted. diff --git a/applications/utilities/mesh/advanced/modifyMesh/cellSplitter.H b/applications/utilities/mesh/advanced/modifyMesh/cellSplitter.H index 0133517d3d..0c141af14a 100644 --- a/applications/utilities/mesh/advanced/modifyMesh/cellSplitter.H +++ b/applications/utilities/mesh/advanced/modifyMesh/cellSplitter.H @@ -123,7 +123,7 @@ public: ); //- Force recalculation of locally stored data on topological change - void updateMesh(const polyTopoChangeMap&); + void topoChange(const polyTopoChangeMap&); // Access diff --git a/applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C b/applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C index 2d6ba45b5b..96b90ae6be 100644 --- a/applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C +++ b/applications/utilities/mesh/advanced/modifyMesh/modifyMesh.C @@ -537,7 +537,7 @@ int main(int argc, char *argv[]) mesh.movePoints(map().preMotionPoints()); } - cutter.updateMesh(map()); + cutter.topoChange(map()); if (!overwrite) { @@ -610,7 +610,7 @@ int main(int argc, char *argv[]) } // Not implemented yet: - // cutter.updateMesh(map()); + // cutter.topoChange(map()); if (!overwrite) @@ -654,7 +654,7 @@ int main(int argc, char *argv[]) mesh.movePoints(map().preMotionPoints()); } - cutter.updateMesh(map()); + cutter.topoChange(map()); if (!overwrite) { diff --git a/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C b/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C index 4748bb82ca..458fa3f428 100644 --- a/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C +++ b/applications/utilities/mesh/advanced/refineHexMesh/refineHexMesh.C @@ -145,10 +145,10 @@ int main(int argc, char *argv[]) autoPtr map = meshMod.changeMesh(mesh, false); // Update fields - mesh.updateMesh(map); + mesh.topoChange(map); // Update numbering of cells/vertices. - meshCutter.updateMesh(map); + meshCutter.topoChange(map); // Optionally inflate mesh if (map().hasMotionPoints()) diff --git a/applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C b/applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C index 14f9cb35be..d791339ca2 100644 --- a/applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C +++ b/applications/utilities/mesh/advanced/refineWallLayer/refineWallLayer.C @@ -248,7 +248,7 @@ int main(int argc, char *argv[]) } // Update stored labels on meshCutter. - cutter.updateMesh(map()); + cutter.topoChange(map()); Info<< "Finished refining" << endl; diff --git a/applications/utilities/mesh/advanced/removeFaces/removeFaces.C b/applications/utilities/mesh/advanced/removeFaces/removeFaces.C index 4e05e714ca..1d04f6fed5 100644 --- a/applications/utilities/mesh/advanced/removeFaces/removeFaces.C +++ b/applications/utilities/mesh/advanced/removeFaces/removeFaces.C @@ -138,7 +138,7 @@ int main(int argc, char *argv[]) autoPtr map = meshMod.changeMesh(mesh, false); - mesh.updateMesh(map); + mesh.topoChange(map); // Move mesh (since morphing does not do this) if (map().hasMotionPoints()) @@ -147,7 +147,7 @@ int main(int argc, char *argv[]) } // Update numbering of cells/vertices. - faceRemover.updateMesh(map); + faceRemover.topoChange(map); if (!overwrite) { diff --git a/applications/utilities/mesh/advanced/splitCells/splitCells.C b/applications/utilities/mesh/advanced/splitCells/splitCells.C index f49b285b45..743f20e10a 100644 --- a/applications/utilities/mesh/advanced/splitCells/splitCells.C +++ b/applications/utilities/mesh/advanced/splitCells/splitCells.C @@ -693,10 +693,10 @@ int main(int argc, char *argv[]) } // Update stored labels on meshCutter - cutter.updateMesh(map()); + cutter.topoChange(map()); // Update cellSet - cellsToCut.updateMesh(map()); + cellsToCut.topoChange(map()); Info<< "Remaining:" << cellsToCut.size() << endl; diff --git a/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C b/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C index 83abc00ae2..143b62ebcf 100644 --- a/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C +++ b/applications/utilities/mesh/generation/extrude/extrudeMesh/extrudeMesh.C @@ -424,7 +424,7 @@ int main(int argc, char *argv[]) autoPtr map = meshMod.changeMesh(mesh, false); // Update fields - mesh.updateMesh(map); + mesh.topoChange(map); // Move mesh (since morphing does not do this) if (map().hasMotionPoints()) @@ -708,7 +708,7 @@ int main(int argc, char *argv[]) mesh ); - layerExtrude.updateMesh + layerExtrude.topoChange ( map(), identity(extrudePatch.size()), @@ -884,7 +884,7 @@ int main(int argc, char *argv[]) autoPtr map = meshMod.changeMesh(mesh, false); // Update fields - mesh.updateMesh(map); + mesh.topoChange(map); // Update stored data updateFaceLabels(map(), frontPatchFaces); @@ -1016,7 +1016,7 @@ int main(int argc, char *argv[]) autoPtr map = meshMod.changeMesh(mesh, false); // Update fields - mesh.updateMesh(map); + mesh.topoChange(map); // Update local data updateCellSet(map(), addedCellsSet); diff --git a/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C b/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C index d0b046992c..055b9871e1 100644 --- a/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C +++ b/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C @@ -2312,7 +2312,7 @@ int main(int argc, char *argv[]) // Update numbering on extruder. - extruder.updateMesh(shellMap); + extruder.topoChange(shellMap); // Calculate offsets from shell mesh back to original mesh @@ -2659,7 +2659,7 @@ int main(int argc, char *argv[]) addBafflesMap = meshMod.changeMesh(mesh, false); // Update fields - mesh.updateMesh(addBafflesMap); + mesh.topoChange(addBafflesMap); //XXXXXX diff --git a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh.C b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh.C index c6ec0c19fb..4e21580c87 100644 --- a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh.C +++ b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh.C @@ -253,7 +253,7 @@ int main(int argc, char *argv[]) // Create a mesh from topo changes. autoPtr map = meshMod().changeMesh(mesh(), false); - mesh().updateMesh(map); + mesh().topoChange(map); { edgeCollapser collapser(mesh()); @@ -304,7 +304,7 @@ int main(int argc, char *argv[]) autoPtr map = meshModCollapse.changeMesh(mesh(), false); - mesh().updateMesh(map); + mesh().topoChange(map); } if (!overwrite) diff --git a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/extrude2DMesh/extrude2DMesh.H b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/extrude2DMesh/extrude2DMesh.H index c5049bbcaa..44542e4adb 100644 --- a/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/extrude2DMesh/extrude2DMesh.H +++ b/applications/utilities/mesh/generation/extrude2DMesh/extrude2DMesh/extrude2DMesh/extrude2DMesh.H @@ -119,7 +119,7 @@ public: void setRefinement(polyTopoChange&); //- Force recalculation of locally stored data on topological change - void updateMesh(const polyTopoChangeMap&) + void topoChange(const polyTopoChangeMap&) {} //- Force recalculation of locally stored data for mesh distribution diff --git a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C index b253d60933..570a6d562e 100644 --- a/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C +++ b/applications/utilities/mesh/generation/foamyMesh/conformalVoronoiMesh/backgroundMeshDecomposition/backgroundMeshDecomposition.C @@ -246,10 +246,10 @@ void Foam::backgroundMeshDecomposition::initialRefinement() ); // Update fields - mesh_.updateMesh(map); + mesh_.topoChange(map); // Update numbering of cells/vertices. - meshCutter_.updateMesh(map); + meshCutter_.topoChange(map); { // Map volumeStatus @@ -355,11 +355,11 @@ void Foam::backgroundMeshDecomposition::initialRefinement() ); // Update fields - mesh_.updateMesh(map); + mesh_.topoChange(map); // Update numbering of cells/vertices. - meshCutter_.updateMesh(map); - cellRemover.updateMesh(map); + meshCutter_.topoChange(map); + cellRemover.topoChange(map); { // Map volumeStatus @@ -947,10 +947,10 @@ Foam::backgroundMeshDecomposition::distribute ); // Update fields - mesh_.updateMesh(map); + mesh_.topoChange(map); // Update numbering of cells/vertices. - meshCutter_.updateMesh(map); + meshCutter_.topoChange(map); Info<< " Background mesh refined from " << returnReduce(map().nOldCells(), sumOp