Public Member Functions | Private Member Functions | Private Attributes
polyMeshGen2DEngine Class Reference
Collaboration diagram for polyMeshGen2DEngine:
Collaboration graph
[legend]

Public Member Functions

 polyMeshGen2DEngine (const polyMeshGen &mesh)
 Construct from the const reference to the mesh. More...
 
 ~polyMeshGen2DEngine ()
 
const boolListactiveFace () const
 const access to active faces More...
 
const labelListactiveFaceLabels () const
 labels of active faces More...
 
const boolListzMinPoints () const
 
const labelListzMinPointLabels () const
 labels of points in the x-y with the smallest z coordinate More...
 
const labelListzMinToZMax () const
 offset points of points at minimum z More...
 
const boolListzMaxPoints () const
 
const labelListzMaxPointLabels () const
 labels of points in the x-y with the largest z coordinate More...
 
const labelListzMaxToZMin () const
 offset points of points at maximum z More...
 
void correctPoints ()
 
void clearOut ()
 delete all dynamically allocated data More...
 

Private Member Functions

void findActiveFaces () const
 find active faces More...
 
void findActiveFaceLabels () const
 find active face labels More...
 
void findZMinPoints () const
 find points at minimum z More...
 
void findZMinPointLabels () const
 find labels of points at minimum z More...
 
void findZMinOffsetPoints () const
 find offset point to each zMin point More...
 
void findZMaxPoints () const
 find points at maximum z More...
 
void findZMaxPointLabels () const
 find labels of points at minimum z More...
 
void findZMaxOffsetPoints () const
 find offset point to each zMin point More...
 
void operator= (const polyMeshGen2DEngine &)
 disallow bitwise assignment More...
 
 polyMeshGen2DEngine (const polyMeshGen2DEngine &)
 disallow copy construct More...
 

Private Attributes

const polyMeshGenmesh_
 const reference to the mesh More...
 
boundBox bb_
 bounding box More...
 
boolListactiveFacePtr_
 which faces are not in the x-y plane More...
 
labelListactiveFaceLabelsPtr_
 labels of active faces More...
 
boolListzMinPointPtr_
 which points are in the x-y plane and at smallest z More...
 
labelListzMinPointLabelsPtr_
 labels of points at minimum z More...
 
labelListzMinToZMaxPtr_
 labels of offset points of zMin points More...
 
boolListzMaxPointPtr_
 which points are in the x-y plane and at largest z More...
 
labelListzMaxPointLabelsPtr_
 labels of points at maximum z More...
 
labelListzMaxToZMinPtr_
 labels of zMin points of zMax points More...
 

Detailed Description

Definition at line 51 of file polyMeshGen2DEngine.H.

Constructor & Destructor Documentation

◆ polyMeshGen2DEngine() [1/2]

disallow copy construct

◆ polyMeshGen2DEngine() [2/2]

polyMeshGen2DEngine ( const polyMeshGen mesh)

Construct from the const reference to the mesh.

Definition at line 273 of file polyMeshGen2DEngine.C.

References polyMeshGen2DEngine::bb_, forAll, boundBox::max(), Foam::max(), polyMeshGen2DEngine::mesh_, boundBox::min(), Foam::min(), UPstream::parRun(), points, polyMeshGenPoints::points(), and Foam::reduce().

Here is the call graph for this function:

◆ ~polyMeshGen2DEngine()

Definition at line 323 of file polyMeshGen2DEngine.C.

References polyMeshGen2DEngine::clearOut().

Here is the call graph for this function:

Member Function Documentation

◆ findActiveFaces()

void findActiveFaces ( ) const
private

find active faces

Definition at line 43 of file polyMeshGen2DEngine.C.

References polyMeshGen2DEngine::activeFacePtr_, f(), polyMeshGenFaces::faces(), forAll, polyMeshGen2DEngine::mesh_, faceListPMG::size(), polyMeshGen2DEngine::zMaxPoints(), and polyMeshGen2DEngine::zMinPoints().

Referenced by polyMeshGen2DEngine::activeFace().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findActiveFaceLabels()

void findActiveFaceLabels ( ) const
private

find active face labels

Definition at line 69 of file polyMeshGen2DEngine.C.

References polyMeshGen2DEngine::activeFace(), polyMeshGen2DEngine::activeFaceLabelsPtr_, and forAll.

Referenced by polyMeshGen2DEngine::activeFaceLabels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findZMinPoints()

void findZMinPoints ( ) const
private

find points at minimum z

Definition at line 87 of file polyMeshGen2DEngine.C.

References polyMeshGen2DEngine::bb_, forAll, Foam::mag(), boundBox::max(), polyMeshGen2DEngine::mesh_, boundBox::min(), points, polyMeshGenPoints::points(), Vector< Cmpt >::z(), and polyMeshGen2DEngine::zMinPointPtr_.

Referenced by polyMeshGen2DEngine::zMinPoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findZMinPointLabels()

void findZMinPointLabels ( ) const
private

find labels of points at minimum z

Definition at line 111 of file polyMeshGen2DEngine.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, List::size(), polyMeshGen2DEngine::zMinPointLabelsPtr_, and polyMeshGen2DEngine::zMinPoints().

Referenced by polyMeshGen2DEngine::zMinPointLabels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findZMinOffsetPoints()

void findZMinOffsetPoints ( ) const
private

◆ findZMaxPoints()

void findZMaxPoints ( ) const
private

find points at maximum z

Definition at line 179 of file polyMeshGen2DEngine.C.

References polyMeshGen2DEngine::bb_, forAll, Foam::mag(), boundBox::max(), polyMeshGen2DEngine::mesh_, boundBox::min(), points, polyMeshGenPoints::points(), Vector< Cmpt >::z(), and polyMeshGen2DEngine::zMaxPointPtr_.

Referenced by polyMeshGen2DEngine::zMaxPoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findZMaxPointLabels()

void findZMaxPointLabels ( ) const
private

find labels of points at minimum z

Definition at line 203 of file polyMeshGen2DEngine.C.

References Foam::exit(), Foam::FatalError, FatalErrorIn, forAll, List::size(), polyMeshGen2DEngine::zMaxPointLabelsPtr_, and polyMeshGen2DEngine::zMaxPoints().

Referenced by polyMeshGen2DEngine::zMaxPointLabels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findZMaxOffsetPoints()

void findZMaxOffsetPoints ( ) const
private

◆ operator=()

void operator= ( const polyMeshGen2DEngine )
private

disallow bitwise assignment

◆ activeFace()

const boolList & activeFace ( ) const
inline

const access to active faces

Definition at line 48 of file polyMeshGen2DEngineI.H.

References polyMeshGen2DEngine::activeFacePtr_, and polyMeshGen2DEngine::findActiveFaces().

Referenced by meshSurfaceEdgeExtractor2D::distributeBoundaryFaces(), meshSurfaceMapper2D::findActiveBoundaryEdges(), polyMeshGen2DEngine::findActiveFaceLabels(), and meshSurfaceOptimizer::untangleSurface2D().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ activeFaceLabels()

const labelList & activeFaceLabels ( ) const
inline

labels of active faces

Definition at line 56 of file polyMeshGen2DEngineI.H.

References polyMeshGen2DEngine::activeFaceLabelsPtr_, and polyMeshGen2DEngine::findActiveFaceLabels().

Here is the call graph for this function:

◆ zMinPoints()

const boolList & zMinPoints ( ) const
inline

◆ zMinPointLabels()

const labelList & zMinPointLabels ( ) const
inline

labels of points in the x-y with the smallest z coordinate

Definition at line 72 of file polyMeshGen2DEngineI.H.

References polyMeshGen2DEngine::findZMinPointLabels(), and polyMeshGen2DEngine::zMinPointLabelsPtr_.

Referenced by polyMeshGen2DEngine::correctPoints(), and polyMeshGen2DEngine::findZMinOffsetPoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zMinToZMax()

const labelList & zMinToZMax ( ) const
inline

offset points of points at minimum z

Definition at line 80 of file polyMeshGen2DEngineI.H.

References polyMeshGen2DEngine::findZMinOffsetPoints(), and polyMeshGen2DEngine::zMinToZMaxPtr_.

Referenced by polyMeshGen2DEngine::correctPoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zMaxPoints()

const boolList & zMaxPoints ( ) const
inline

const access to an array of booleans which is true for points in the x-y plane with the largest z coordinate

Definition at line 88 of file polyMeshGen2DEngineI.H.

References polyMeshGen2DEngine::findZMaxPoints(), and polyMeshGen2DEngine::zMaxPointPtr_.

Referenced by boundaryLayers::activate2DMode(), meshSurfaceMapper2D::adjustZCoordinates(), detectBoundaryLayers::analyseLayers(), refineBoundaryLayers::analyseLayers(), meshSurfaceEdgeExtractor2D::distributeBoundaryFaces(), polyMeshGen2DEngine::findActiveFaces(), polyMeshGen2DEngine::findZMaxOffsetPoints(), and polyMeshGen2DEngine::findZMaxPointLabels().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zMaxPointLabels()

const labelList & zMaxPointLabels ( ) const
inline

labels of points in the x-y with the largest z coordinate

Definition at line 96 of file polyMeshGen2DEngineI.H.

References polyMeshGen2DEngine::findZMaxPointLabels(), and polyMeshGen2DEngine::zMaxPointLabelsPtr_.

Referenced by polyMeshGen2DEngine::findZMaxOffsetPoints().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ zMaxToZMin()

const labelList & zMaxToZMin ( ) const
inline

offset points of points at maximum z

Definition at line 104 of file polyMeshGen2DEngineI.H.

References polyMeshGen2DEngine::findZMaxOffsetPoints(), and polyMeshGen2DEngine::zMaxToZMinPtr_.

Here is the call graph for this function:

◆ correctPoints()

void correctPoints ( )

correct x and y coordinates of offset points and unify the z coordinate

Definition at line 330 of file polyMeshGen2DEngine.C.

References polyMeshGen2DEngine::bb_, forAll, boundBox::max(), polyMeshGen2DEngine::mesh_, boundBox::min(), p, points, polyMeshGenPoints::points(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), Vector< Cmpt >::z(), polyMeshGen2DEngine::zMinPointLabels(), and polyMeshGen2DEngine::zMinToZMax().

Referenced by meshSurfaceOptimizer::optimizeSurface2D(), and meshSurfaceOptimizer::untangleSurface2D().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearOut()

void clearOut ( )

Field Documentation

◆ mesh_

const polyMeshGen& mesh_
private

◆ bb_

boundBox bb_
private

◆ activeFacePtr_

boolList* activeFacePtr_
mutableprivate

which faces are not in the x-y plane

Definition at line 61 of file polyMeshGen2DEngine.H.

Referenced by polyMeshGen2DEngine::activeFace(), polyMeshGen2DEngine::clearOut(), and polyMeshGen2DEngine::findActiveFaces().

◆ activeFaceLabelsPtr_

labelList* activeFaceLabelsPtr_
mutableprivate

◆ zMinPointPtr_

boolList* zMinPointPtr_
mutableprivate

which points are in the x-y plane and at smallest z

Definition at line 67 of file polyMeshGen2DEngine.H.

Referenced by polyMeshGen2DEngine::clearOut(), polyMeshGen2DEngine::findZMinPoints(), and polyMeshGen2DEngine::zMinPoints().

◆ zMinPointLabelsPtr_

labelList* zMinPointLabelsPtr_
mutableprivate

◆ zMinToZMaxPtr_

labelList* zMinToZMaxPtr_
mutableprivate

labels of offset points of zMin points

Definition at line 73 of file polyMeshGen2DEngine.H.

Referenced by polyMeshGen2DEngine::clearOut(), polyMeshGen2DEngine::findZMinOffsetPoints(), and polyMeshGen2DEngine::zMinToZMax().

◆ zMaxPointPtr_

boolList* zMaxPointPtr_
mutableprivate

which points are in the x-y plane and at largest z

Definition at line 76 of file polyMeshGen2DEngine.H.

Referenced by polyMeshGen2DEngine::clearOut(), polyMeshGen2DEngine::findZMaxPoints(), and polyMeshGen2DEngine::zMaxPoints().

◆ zMaxPointLabelsPtr_

labelList* zMaxPointLabelsPtr_
mutableprivate

◆ zMaxToZMinPtr_

labelList* zMaxToZMinPtr_
mutableprivate

labels of zMin points of zMax points

Definition at line 82 of file polyMeshGen2DEngine.H.

Referenced by polyMeshGen2DEngine::clearOut(), polyMeshGen2DEngine::findZMaxOffsetPoints(), and polyMeshGen2DEngine::zMaxToZMin().


The documentation for this class was generated from the following files: