Public Member Functions | Private Types | Private Member Functions | Private Attributes
hexBlock Class Reference

Hex block definition used in the cfx converter. More...

Collaboration diagram for hexBlock:
Collaboration graph
[legend]

Public Member Functions

 hexBlock (const label nx, const label ny, const label nz)
 Construct from components. More...
 
label xDim () const
 Number of points. More...
 
label yDim () const
 
label zDim () const
 
label nBlockPoints () const
 
label nBlockCells () const
 
const pointFieldpoints () const
 Return block points. More...
 
labelListList blockCells () const
 Return block cells. More...
 
faceList patchFaces (label direc, const labelList &range) const
 Return block patch faces given direction and range limits. More...
 
void readPoints (Istream &)
 Read block points. More...
 
 hexBlock (const label nx, const label ny, const label nz)
 Construct from components. More...
 
label xDim () const
 Number of points. More...
 
label yDim () const
 
label zDim () const
 
label nBlockPoints () const
 
label nBlockCells () const
 
const pointFieldpoints () const
 Return block points. More...
 
labelListList blockCells () const
 Return block cells. More...
 
faceList patchFaces (label direc, const labelList &range) const
 Return block patch faces given direction and range limits. More...
 
void readPoints (const bool readBlank, const scalar twoDThicknes, Istream &)
 Read block points either with or without blanking after every block. More...
 

Private Types

enum  handed {
  noPoints, right, left, noPoints,
  right, left
}
 Handedness of the block. More...
 
enum  handed {
  noPoints, right, left, noPoints,
  right, left
}
 Handedness of the block. More...
 

Private Member Functions

 hexBlock (const hexBlock &)
 Disallow default bitwise copy construct. More...
 
void operator= (const hexBlock &)
 Disallow default bitwise assignment. More...
 
label vtxLabel (label i, label j, label k) const
 Vertex addressing inside the block. More...
 
 hexBlock (const hexBlock &)
 Disallow default bitwise copy construct. More...
 
void operator= (const hexBlock &)
 Disallow default bitwise assignment. More...
 
label vtxLabel (label i, label j, label k) const
 Vertex addressing inside the block. More...
 
void setHandedness ()
 Calculate handedness of block. More...
 

Private Attributes

label xDim_
 Number of point in each direction. More...
 
label yDim_
 
label zDim_
 
handed blockHandedness_
 Handedness of the block. More...
 
pointField points_
 List of points. More...
 

Detailed Description

Hex block definition used in the cfx converter.

Source files

Definition at line 50 of file hexBlock.H.

Member Enumeration Documentation

◆ handed [1/2]

enum handed
private

Handedness of the block.

Enumerator
noPoints 
right 
left 
noPoints 
right 
left 

Definition at line 55 of file hexBlock.H.

◆ handed [2/2]

enum handed
private

Handedness of the block.

Enumerator
noPoints 
right 
left 
noPoints 
right 
left 

Definition at line 49 of file hexBlock.H.

Constructor & Destructor Documentation

◆ hexBlock() [1/4]

hexBlock ( const hexBlock )
private

Disallow default bitwise copy construct.

◆ hexBlock() [2/4]

hexBlock ( const label  nx,
const label  ny,
const label  nz 
)

Construct from components.

◆ hexBlock() [3/4]

hexBlock ( const hexBlock )
private

Disallow default bitwise copy construct.

◆ hexBlock() [4/4]

hexBlock ( const label  nx,
const label  ny,
const label  nz 
)

Construct from components.

Member Function Documentation

◆ operator=() [1/2]

void operator= ( const hexBlock )
private

Disallow default bitwise assignment.

◆ vtxLabel() [1/2]

label vtxLabel ( label  i,
label  j,
label  k 
) const
inlineprivate

Vertex addressing inside the block.

◆ xDim() [1/2]

label xDim ( ) const
inline

Number of points.

Definition at line 96 of file hexBlock.H.

References hexBlock::xDim_.

◆ yDim() [1/2]

label yDim ( ) const
inline

Definition at line 101 of file hexBlock.H.

References hexBlock::yDim_.

◆ zDim() [1/2]

label zDim ( ) const
inline

Definition at line 106 of file hexBlock.H.

References hexBlock::zDim_.

◆ nBlockPoints() [1/2]

label nBlockPoints ( ) const
inline

Definition at line 111 of file hexBlock.H.

References hexBlock::xDim_, hexBlock::yDim_, and hexBlock::zDim_.

◆ nBlockCells() [1/2]

label nBlockCells ( ) const
inline

Definition at line 116 of file hexBlock.H.

References hexBlock::xDim_, hexBlock::yDim_, and hexBlock::zDim_.

◆ points() [1/2]

const pointField& points ( ) const
inline

Return block points.

Definition at line 122 of file hexBlock.H.

References Foam::abort(), hexBlock::blockHandedness_, Foam::FatalError, FatalErrorInFunction, hexBlock::noPoints, and hexBlock::points_.

Here is the call graph for this function:

◆ blockCells() [1/2]

labelListList blockCells ( ) const

Return block cells.

◆ patchFaces() [1/2]

faceList patchFaces ( label  direc,
const labelList range 
) const

Return block patch faces given direction and range limits.

From the cfx manual: direction 0 = solid (3-D patch), 1 = high i, 2 = high j, 3 = high k 4 = low i, 5 = low j, 6 = low k

◆ readPoints() [1/2]

void readPoints ( Istream )

Read block points.

◆ operator=() [2/2]

void operator= ( const hexBlock )
private

Disallow default bitwise assignment.

◆ vtxLabel() [2/2]

label vtxLabel ( label  i,
label  j,
label  k 
) const
inlineprivate

Vertex addressing inside the block.

◆ setHandedness()

void setHandedness ( )
private

Calculate handedness of block.

◆ xDim() [2/2]

label xDim ( ) const
inline

Number of points.

Definition at line 97 of file hexBlock.H.

References hexBlock::xDim_.

◆ yDim() [2/2]

label yDim ( ) const
inline

Definition at line 102 of file hexBlock.H.

References hexBlock::yDim_.

◆ zDim() [2/2]

label zDim ( ) const
inline

Definition at line 107 of file hexBlock.H.

References hexBlock::zDim_.

◆ nBlockPoints() [2/2]

label nBlockPoints ( ) const
inline

Definition at line 112 of file hexBlock.H.

References hexBlock::xDim_, hexBlock::yDim_, and hexBlock::zDim_.

◆ nBlockCells() [2/2]

label nBlockCells ( ) const
inline

Definition at line 117 of file hexBlock.H.

References hexBlock::xDim_, hexBlock::yDim_, and hexBlock::zDim_.

◆ points() [2/2]

const pointField& points ( ) const
inline

Return block points.

Definition at line 123 of file hexBlock.H.

References Foam::abort(), hexBlock::blockHandedness_, Foam::FatalError, FatalErrorInFunction, hexBlock::noPoints, and hexBlock::points_.

Here is the call graph for this function:

◆ blockCells() [2/2]

labelListList blockCells ( ) const

Return block cells.

◆ patchFaces() [2/2]

faceList patchFaces ( label  direc,
const labelList range 
) const

Return block patch faces given direction and range limits.

From the cfx manual: direction 0 = solid (3-D patch), 1 = high i, 2 = high j, 3 = high k 4 = low i, 5 = low j, 6 = low k

◆ readPoints() [2/2]

void readPoints ( const bool  readBlank,
const scalar  twoDThicknes,
Istream  
)

Read block points either with or without blanking after every block.

If twoDThickness > 0 reads (half) the points and extrudes the points in z direction.

Field Documentation

◆ xDim_

label xDim_
private

Number of point in each direction.

Definition at line 63 of file hexBlock.H.

Referenced by hexBlock::nBlockCells(), hexBlock::nBlockPoints(), and hexBlock::xDim().

◆ yDim_

label yDim_
private

Definition at line 64 of file hexBlock.H.

Referenced by hexBlock::nBlockCells(), hexBlock::nBlockPoints(), and hexBlock::yDim().

◆ zDim_

label zDim_
private

Definition at line 65 of file hexBlock.H.

Referenced by hexBlock::nBlockCells(), hexBlock::nBlockPoints(), and hexBlock::zDim().

◆ blockHandedness_

handed blockHandedness_
private

Handedness of the block.

Definition at line 68 of file hexBlock.H.

Referenced by hexBlock::points().

◆ points_

pointField points_
private

List of points.

Definition at line 71 of file hexBlock.H.

Referenced by hexBlock::points().


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