hexBlock Class Reference

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

Public Member Functions

 hexBlock (const label nx, const label ny, const label nz)
 Construct from components. More...
 
 hexBlock (const hexBlock &)=delete
 Disallow default bitwise copy construction. 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...
 
void operator= (const hexBlock &)=delete
 Disallow default bitwise assignment. 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 twoDThickness, Istream &)
 Read block points either with or without blanking after every block. More...
 

Detailed Description

Hex block definition used in the cfx converter.

Source files

Definition at line 50 of file hexBlock.H.

Constructor & Destructor Documentation

◆ hexBlock() [1/3]

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

Construct from components.

◆ hexBlock() [2/3]

hexBlock ( const hexBlock )
delete

Disallow default bitwise copy construction.

◆ hexBlock() [3/3]

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

Construct from components.

Member Function Documentation

◆ xDim() [1/2]

label xDim ( ) const
inline

Number of points.

Definition at line 94 of file hexBlock.H.

◆ yDim() [1/2]

label yDim ( ) const
inline

Definition at line 99 of file hexBlock.H.

◆ zDim() [1/2]

label zDim ( ) const
inline

Definition at line 104 of file hexBlock.H.

◆ nBlockPoints() [1/2]

label nBlockPoints ( ) const
inline

Definition at line 109 of file hexBlock.H.

◆ nBlockCells() [1/2]

label nBlockCells ( ) const
inline

Definition at line 114 of file hexBlock.H.

◆ points() [1/2]

const pointField& points ( ) const
inline

Return block points.

Definition at line 120 of file hexBlock.H.

References Foam::abort(), hexBlock::blockCells(), Foam::FatalError, FatalErrorInFunction, hexBlock::operator=(), hexBlock::patchFaces(), range, and hexBlock::readPoints().

Here is the call graph for this function:

◆ blockCells() [1/2]

labelListList blockCells ( ) const

Return block cells.

Referenced by hexBlock::points().

Here is the caller graph for this function:

◆ 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

Referenced by hexBlock::points().

Here is the caller graph for this function:

◆ readPoints() [1/2]

void readPoints ( Istream )

Read block points.

Referenced by hexBlock::points().

Here is the caller graph for this function:

◆ operator=()

void operator= ( const hexBlock )
delete

Disallow default bitwise assignment.

Referenced by hexBlock::points().

Here is the caller graph for this function:

◆ xDim() [2/2]

label xDim ( ) const
inline

Number of points.

Definition at line 97 of file hexBlock.H.

◆ yDim() [2/2]

label yDim ( ) const
inline

Definition at line 102 of file hexBlock.H.

◆ zDim() [2/2]

label zDim ( ) const
inline

Definition at line 107 of file hexBlock.H.

◆ nBlockPoints() [2/2]

label nBlockPoints ( ) const
inline

Definition at line 112 of file hexBlock.H.

◆ nBlockCells() [2/2]

label nBlockCells ( ) const
inline

Definition at line 117 of file hexBlock.H.

◆ points() [2/2]

const pointField& points ( ) const
inline

Return block points.

Definition at line 123 of file hexBlock.H.

References Foam::abort(), hexBlock::blockCells(), Foam::FatalError, FatalErrorInFunction, hexBlock::patchFaces(), range, and hexBlock::readPoints().

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  twoDThickness,
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.


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