mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: snappyHexMesh: unset moving flag. Fixes #2477
This commit is contained in:
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user