mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: cvMeshBrackgroundMesh: cleaned up code
This commit is contained in:
@ -1,8 +1,6 @@
|
|||||||
/*
|
|
||||||
EXE_DEBUG = -DFULLDEBUG -g -O0
|
EXE_DEBUG = -DFULLDEBUG -g -O0
|
||||||
EXE_FROUNDING_MATH = -frounding-math
|
EXE_FROUNDING_MATH = -frounding-math
|
||||||
EXE_NDEBUG = -DNDEBUG
|
EXE_NDEBUG = -DNDEBUG
|
||||||
*/
|
|
||||||
|
|
||||||
include $(GENERAL_RULES)/CGAL
|
include $(GENERAL_RULES)/CGAL
|
||||||
|
|
||||||
@ -24,8 +22,8 @@ EXE_LIBS = \
|
|||||||
-lconformalVoronoiMesh \
|
-lconformalVoronoiMesh \
|
||||||
-ldecompositionMethods /* -L$(FOAM_LIBBIN)/dummy -lscotchDecomp */ \
|
-ldecompositionMethods /* -L$(FOAM_LIBBIN)/dummy -lscotchDecomp */ \
|
||||||
-ledgeMesh \
|
-ledgeMesh \
|
||||||
|
-lsampling \
|
||||||
-ltriSurface \
|
-ltriSurface \
|
||||||
-lmeshTools \
|
-lmeshTools \
|
||||||
-ldynamicMesh \
|
-ldynamicMesh \
|
||||||
-lsampling \
|
|
||||||
-lfiniteVolume
|
-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
|
autoPtr<polyMesh> generateHexMesh
|
||||||
(
|
(
|
||||||
const IOobject& io,
|
const IOobject& io,
|
||||||
|
|||||||
Reference in New Issue
Block a user