Commit 99b75260 authored by Franjo's avatar Franjo
Browse files

Minor changes in the testing interface

parent 5f3603b3
...@@ -37,6 +37,7 @@ Description ...@@ -37,6 +37,7 @@ Description
#include "triSurf.H" #include "triSurf.H"
#include "meshOctree.H" #include "meshOctree.H"
#include "meshOctreeCreator.H" #include "meshOctreeCreator.H"
#include "triSurfacePatchManipulator.H"
using namespace Foam; using namespace Foam;
...@@ -62,15 +63,32 @@ int main(int argc, char *argv[]) ...@@ -62,15 +63,32 @@ int main(int argc, char *argv[])
); );
const fileName surfFile(meshDict.lookup("surfaceFile")); const fileName surfFile(meshDict.lookup("surfaceFile"));
triSurf surf(surfFile); const triSurf* surfacePtr = new triSurf(surfFile);
meshOctree mo(surf); if( surfacePtr->featureEdges().size() != 0 )
meshOctreeCreator(mo, meshDict).createOctreeBoxes(); {
//- create surface patches based on the feature edges
//- and update the meshDict based on the given data
triSurfacePatchManipulator manipulator(*surfacePtr);
const triSurf* surfaceWithPatches =
manipulator.surfaceWithPatches(&meshDict);
//- delete the old surface and assign the new one
deleteDemandDrivenData(surfacePtr);
surfacePtr = surfaceWithPatches;
}
meshOctree mo(*surfacePtr);
meshOctreeCreator(mo, meshDict).createOctreeWithRefinedBoundary(20, 30);
polyMeshGen pmg(runTime); polyMeshGen pmg(runTime);
pmg.read();
meshSurfaceEdgeExtractorFUN(pmg, mo, false); meshSurfaceEdgeExtractorFUN(pmg, mo, false);
deleteDemandDrivenData(surfacePtr);
pmg.write(); pmg.write();
Info << "End\n" << endl; Info << "End\n" << endl;
......
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