Skip to content
Snippets Groups Projects
Commit e5372864 authored by mattijs's avatar mattijs
Browse files

ENH: cvMeshBrackgroundMesh: cleaned up code

parent 374babde
Branches
Tags
No related merge requests found
/*
EXE_DEBUG = -DFULLDEBUG -g -O0
EXE_FROUNDING_MATH = -frounding-math
EXE_NDEBUG = -DNDEBUG
*/
include $(GENERAL_RULES)/CGAL
......@@ -24,8 +22,8 @@ EXE_LIBS = \
-lconformalVoronoiMesh \
-ldecompositionMethods /* -L$(FOAM_LIBBIN)/dummy -lscotchDecomp */ \
-ledgeMesh \
-lsampling \
-ltriSurface \
-lmeshTools \
-ldynamicMesh \
-lsampling \
-lfiniteVolume
......@@ -220,156 +220,6 @@ label vtxLabel
}
//// Generate hex mesh around surface.
//void setRefinement
//(
// const vector& cellSize,
// const Vector<label>& nCells
// polyTopoChange& meshMod
//)
//{
// const treeBoundBox& bb = geometryToConformTo.globalBounds();
//
// // Determine the number of cells in each direction.
// vector nScalarCells = bb.span()/cellSizeControl.defaultCellSize();
// Vector<label> nCells
// (
// label(nScalarCells[0]),
// label(nScalarCells[1]),
// label(nScalarCells[2])
// );
// vector cellSize(bb.span()/nCells);
//
// const label nPatches = 1;
// polyTopoChange meshMod(nPatches);
//
// // Generate points
// for (label i = 0; i <= nCells[0]; i++)
// {
// for (label j = 0; j <= nCells[1]; j++)
// {
// for (label k = 0; k <= nCells[2]; k++)
// {
// meshMod.addPoint
// (
// bb.min()+i*cellSize[0]+j*cellSize[1]+k*cellSize[2],
// -1, // masterPointID,
// -1, // zoneID,
// true
// );
// }
// }
// }
//
// // Generate cells such that cell
// for (label i = 0; i < nCells[0]; i++)
// {
// for (label j = 0; j < nCells[1]; j++)
// {
// for (label k = 0; k < nCells[2]; k++)
// {
// meshMod.addCell
// (
// -1, // masterPointID,
// -1, // masterEdgeID,
// -1, // masterFaceID,
// -1, // masterCellID,
// -1 //zoneID
// );
// }
// }
// }
//
// // Generate internal faces
// face f(4);
//
// // Internal faces between i and i+1
// for (label i = 0; i < nCells[0]-1; i++)
// {
// for (label j = 0; j < nCells[1]-1; j++)
// {
// for (label k = 0; k < nCells[2]-1; k++)
// {
// face[0] = vertexID(nCells, i, j, k);
// face[1] = vertexID(nCells, i, j+1, k);
// face[2] = vertexID(nCells, i, j+1, k+1);
// face[3] = vertexID(nCells, i, j, k+1);
//
// meshMod.addFace
// (
// f,
// cellID(nCells, i,j, k), //own
// cellID(nCells, i+1,j, k+1), //nei
// -1, //masterPointID,
// -1, //masterEdgeID,
// -1, //masterFaceID,
// false, //flipFaceFlux,
// -1, //patchID,
// -1, //zoneID,
// false //zoneFlip
// );
// }
// }
// }
// // Internal faces between j and j+1
// for (label i = 0; i < nCells[0]-1; i++)
// {
// for (label j = 0; j < nCells[1]-1; j++)
// {
// for (label k = 0; k < nCells[2]-1; k++)
// {
// face[0] = vertexID(nCells, i, j, k);
// face[1] = vertexID(nCells, i, j, k+1);
// face[2] = vertexID(nCells, i+1, j, k+1);
// face[3] = vertexID(nCells, i+1, j, k);
//
// meshMod.addFace
// (
// f,
// cellID(nCells, i,j, k), //own
// cellID(nCells, i,j+1, k+1), //nei
// -1, //masterPointID,
// -1, //masterEdgeID,
// -1, //masterFaceID,
// false, //flipFaceFlux,
// -1, //patchID,
// -1, //zoneID,
// false //zoneFlip
// );
// }
// }
// }
// // Internal faces between k and k+1
// for (label i = 0; i < nCells[0]-1; i++)
// {
// for (label j = 0; j < nCells[1]-1; j++)
// {
// for (label k = 0; k < nCells[2]-1; k++)
// {
// face[0] = vertexID(nCells, i, j, k);
// face[1] = vertexID(nCells, i+1, j, k);
// face[2] = vertexID(nCells, i+1, j+1, k);
// face[3] = vertexID(nCells, i, j+1, k);
//
// meshMod.addFace
// (
// f,
// cellID(nCells, i,j, k), //own
// cellID(nCells, i,j, k+1), //nei
// -1, //masterPointID,
// -1, //masterEdgeID,
// -1, //masterFaceID,
// false, //flipFaceFlux,
// -1, //patchID,
// -1, //zoneID,
// false //zoneFlip
// );
// }
// }
// }
//}
autoPtr<polyMesh> generateHexMesh
(
const IOobject& io,
......
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