BUG: snappyHexMesh: unset moving flag. Fixes #2477

This commit is contained in:
mattijs
2022-05-20 17:11:25 +01:00
parent ee6c241b69
commit daca02dfd1
2 changed files with 14 additions and 0 deletions

View File

@ -4241,6 +4241,17 @@ void Foam::snappyLayerDriver::addLayers
//?necessary? Update fields
newMesh.updateMesh(map);
// Move mesh if in inflation mode
if (map.hasMotionPoints())
{
newMesh.movePoints(map.preMotionPoints());
}
else
{
// Delete mesh volumes.
newMesh.clearOut();
}
newMesh.setInstance(meshRefiner_.timeName());
// Update numbering on addLayer:
@ -5128,6 +5139,7 @@ void Foam::snappyLayerDriver::addLayers
mapPolyMesh& map = *mapPtr;
// Hack to remove meshPhi - mapped incorrectly. TBD.
mesh.moving(false);
mesh.clearOut();
// Update fields

View File

@ -370,9 +370,11 @@ void Foam::snappyLayerDriver::addLayersSinglePass
{
// Apply the stored topo changes to the current mesh.
autoPtr<mapPolyMesh> mapPtr = meshMod.changeMesh(mesh, false);
mapPolyMesh& map = *mapPtr;
// Hack to remove meshPhi - mapped incorrectly. TBD.
mesh.moving(false);
mesh.clearOut();
// Update fields