Commit 37e13f70 authored by Franjo's avatar Franjo
Browse files

Added a check for symmetry plane flatness in renameBoundaryPatches

parent 483c4502
......@@ -26,6 +26,7 @@ Description
\*---------------------------------------------------------------------------*/
#include "renameBoundaryPatches.H"
#include "symmetryPlaneOptimisation.H"
#include "demandDrivenData.H"
#include "IOdictionary.H"
......@@ -262,6 +263,13 @@ void renameBoundaryPatches::checkEmptyPatches()
}
}
void renameBoundaryPatches::checkSymmetryPlanes()
{
symmetryPlaneOptimisation symmSmother(mesh_);
symmSmother.optimizeSymmetryPlanes();
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
renameBoundaryPatches::renameBoundaryPatches
......@@ -279,9 +287,10 @@ renameBoundaryPatches::renameBoundaryPatches
checkEmptyPatches();
}
checkSymmetryPlanes();
if( meshDict.found("renameBoundary") )
calculateNewBoundary();
}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
......
......@@ -54,7 +54,7 @@ class renameBoundaryPatches
// Private data
//- mesh
polyMeshGen& mesh_;
//- dictionary containing relevant information
const IOdictionary& meshDict_;
......@@ -64,7 +64,11 @@ class renameBoundaryPatches
//- find empty patches in 3D meshes and change them to wall
void checkEmptyPatches();
//- check if there exist any symmetry planes
//- and make sure they get perfectly flat
void checkSymmetryPlanes();
//- Disallow default bitwise copy construct
renameBoundaryPatches(const renameBoundaryPatches&);
......
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