ENH: autoHexMesh: rewrite of zone allocation

This commit is contained in:
mattijs
2015-12-08 18:44:24 +00:00
parent 740f6896c6
commit b5765db7c3
2 changed files with 701 additions and 690 deletions

View File

@ -507,7 +507,6 @@ private:
void getIntersections void getIntersections
( (
const labelList& surfacesToTest, const labelList& surfacesToTest,
const labelList& neiLevel,
const pointField& neiCc, const pointField& neiCc,
const labelList& testFaces, const labelList& testFaces,
@ -515,6 +514,18 @@ private:
labelList& globalRegion2 labelList& globalRegion2
) const; ) const;
//- Calculate intersections on zoned faces. Return per face -1
// or the index of the surface and the orientation w.r.t. surface
void getIntersections
(
const labelList& surfacesToTest,
const pointField& neiCc,
const labelList& testFaces,
labelList& namedSurfaceIndex,
PackedBoolList& posOrientation
) const;
//- Determine patches for baffles //- Determine patches for baffles
void getBafflePatches void getBafflePatches
( (
@ -635,13 +646,13 @@ private:
labelList& cellToZone labelList& cellToZone
) const; ) const;
//- Finds zone per cell for cells inside named surfaces that have //- Finds zone per cell for cells inside region for which name
// an inside point specified. // is specified.
void findCellZoneInsideWalk void findCellZoneInsideWalk
( (
const labelList& locationSurfaces, const pointField& locationsInMesh,
const labelList& namedSurfaceIndex, const labelList& zonesInMesh,
const labelList& surfaceToCellZone, const labelList& blockedFace, // per face -1 or some index >= 0
labelList& cellToZone labelList& cellToZone
) const; ) const;
@ -650,8 +661,8 @@ private:
void findCellZoneInsideWalk void findCellZoneInsideWalk
( (
const pointField& locationsInMesh, const pointField& locationsInMesh,
const wordList& regionsInMesh, const wordList& zoneNamesInMesh,
const labelList& blockedFace, // per face -1 or some index >= 0 const labelList& faceToZone, // per face -1 or some index >= 0
labelList& cellToZone labelList& cellToZone
) const; ) const;
@ -670,6 +681,7 @@ private:
void findCellZoneTopo void findCellZoneTopo
( (
const pointField& locationsInMesh, const pointField& locationsInMesh,
const labelList& allSurfaceIndex,
const labelList& namedSurfaceIndex, const labelList& namedSurfaceIndex,
const labelList& surfaceToCellZone, const labelList& surfaceToCellZone,
labelList& cellToZone labelList& cellToZone
@ -677,10 +689,23 @@ private:
void makeConsistentFaceIndex void makeConsistentFaceIndex
( (
const labelList& zoneToNamedSurface,
const labelList& cellToZone, const labelList& cellToZone,
labelList& namedSurfaceIndex labelList& namedSurfaceIndex
) const; ) const;
//- Calculate cellZone allocation
void zonify
(
const bool allowFreeStandingZoneFaces,
const pointField& locationsInMesh,
const wordList& zonesInMesh,
labelList& cellToZone,
labelList& namedSurfaceIndex,
PackedBoolList& posOrientation
) const;
//- Put cells into cellZone, faces into faceZone //- Put cells into cellZone, faces into faceZone
void zonify void zonify
( (