Commit 110bd95c authored by Franjo's avatar Franjo
Browse files

Boundary layer points are not moved whie improving mesh quality

parent a7bfd073
...@@ -153,7 +153,12 @@ void cartesianMeshGenerator::refBoundaryLayers() ...@@ -153,7 +153,12 @@ void cartesianMeshGenerator::refBoundaryLayers()
refLayers.refineLayers(); refLayers.refineLayers();
meshOptimizer(mesh_).untangleBoundaryLayer(); labelLongList pointsInLayer;
refLayers.pointsInBndLayer(pointsInLayer);
meshOptimizer mOpt(mesh_);
mOpt.lockPoints(pointsInLayer);
mOpt.untangleBoundaryLayer();
} }
} }
......
...@@ -151,18 +151,18 @@ void tetMeshGenerator::optimiseFinalMesh() ...@@ -151,18 +151,18 @@ void tetMeshGenerator::optimiseFinalMesh()
readBool(meshDict_.lookup("enforceGeometryConstraints")); readBool(meshDict_.lookup("enforceGeometryConstraints"));
} }
meshOptimizer optimizer(mesh_); meshOptimizer optimizer(mesh_, octreePtr_);
if( enforceConstraints ) if( enforceConstraints )
optimizer.enforceConstraints(); optimizer.enforceConstraints();
optimizer.optimizeSurface(*octreePtr_); optimizer.optimizeSurface(*octreePtr_);
deleteDemandDrivenData(octreePtr_);
optimizer.optimizeMeshFV(); optimizer.optimizeMeshFV();
optimizer.optimizeLowQualityFaces(); optimizer.optimizeLowQualityFaces();
optimizer.optimizeBoundaryLayer(false); optimizer.optimizeBoundaryLayer(false);
optimizer.optimizeMeshFV(); optimizer.untangleMeshFV();
deleteDemandDrivenData(octreePtr_);
mesh_.clearAddressingData(); mesh_.clearAddressingData();
...@@ -214,7 +214,12 @@ void tetMeshGenerator::refBoundaryLayers() ...@@ -214,7 +214,12 @@ void tetMeshGenerator::refBoundaryLayers()
refLayers.refineLayers(); refLayers.refineLayers();
meshOptimizer(mesh_).untangleBoundaryLayer(); labelLongList pointsInLayer;
refLayers.pointsInBndLayer(pointsInLayer);
meshOptimizer opt(mesh_);
opt.lockPoints(pointsInLayer);
opt.untangleBoundaryLayer();
} }
} }
......
...@@ -203,7 +203,12 @@ void voronoiMeshGenerator::refBoundaryLayers() ...@@ -203,7 +203,12 @@ void voronoiMeshGenerator::refBoundaryLayers()
refLayers.refineLayers(); refLayers.refineLayers();
meshOptimizer(mesh_).untangleBoundaryLayer(); labelLongList pointsInLayer;
refLayers.pointsInBndLayer(pointsInLayer);
meshOptimizer mOpt(mesh_);
mOpt.lockPoints(pointsInLayer);
mOpt.untangleBoundaryLayer();
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment