Public Member Functions | Private Member Functions | Private Attributes | Friends
block Class Reference

Creates a single block of cells from point coordinates, numbers of cells in each direction and an expansion ratio. More...

Inheritance diagram for block:
Inheritance graph
[legend]
Collaboration diagram for block:
Collaboration graph
[legend]

Public Member Functions

 block (const pointField &blockPointField, const curvedEdgeList &, Istream &)
 Construct from components with Istream. More...
 
 block (const blockDescriptor &)
 Construct from a block definition. More...
 
autoPtr< blockclone () const
 Clone. More...
 
 ~block ()
 Destructor. More...
 
const blockDescriptorblockDef () const
 Return the block definition. More...
 
label vtxLabel (label i, label j, label k) const
 Vertex label offset for a particular i,j,k position. More...
 
const pointFieldpoints () const
 Return the points for filling the block. More...
 
const labelListListcells () const
 Return the cells for filling the block. More...
 
const labelListListListboundaryPatches () const
 Return the boundary patch faces for the block. More...
 
void clearGeom ()
 Clear geometry (internal points, cells, boundaryPatches) More...
 
- Public Member Functions inherited from blockDescriptor
 blockDescriptor (const cellShape &, const pointField &blockPointField, const curvedEdgeList &, const Vector< label > &meshDensity, const UList< gradingDescriptors > &expand, const word &zoneName="")
 Construct from components. Optional cellSet/zone name. More...
 
 blockDescriptor (const pointField &blockPointField, const curvedEdgeList &, Istream &)
 Construct from Istream. More...
 
autoPtr< blockDescriptorclone () const
 Clone. More...
 
 ~blockDescriptor ()
 Destructor. More...
 
const Vector< label > & density () const
 Return the number of cells in the i,j,k directions. More...
 
const pointFieldblockPointField () const
 Reference to point field defining the block mesh. More...
 
const cellShapeblockShape () const
 Return the block shape. More...
 
const List< List< point > > & blockEdgePoints () const
 Return the block points along each edge. More...
 
const scalarListListblockEdgeWeights () const
 Return the weightings along each edge. More...
 
const Vector< label > & meshDensity () const
 Return the mesh density (number of cells) in the i,j,k directions. More...
 
const wordzoneName () const
 Return the (optional) zone name. More...
 
label nPoints () const
 Return the number of points. More...
 
label nCells () const
 Return the number of cells. More...
 
const pointblockPoint (const label i) const
 Return block point at local label i. More...
 

Private Member Functions

void createPoints () const
 Creates vertices for cells filling the block. More...
 
void createCells () const
 Creates cells for filling the block. More...
 
void createBoundary () const
 Creates boundary patch faces for the block. More...
 
 block (const block &)
 Disallow default bitwise copy construct. More...
 
void operator= (const block &)
 Disallow default bitwise assignment. More...
 

Private Attributes

pointField vertices_
 List of vertices. More...
 
labelListList cells_
 List of cells. More...
 
labelListListList boundaryPatches_
 Boundary patches. More...
 

Friends

Ostreamoperator<< (Ostream &, const block &)
 

Detailed Description

Creates a single block of cells from point coordinates, numbers of cells in each direction and an expansion ratio.

Note
The vertices and cells for filling the block are demand-driven.
Source files

Definition at line 63 of file block.H.

Constructor & Destructor Documentation

◆ block() [1/3]

block ( const block )
private

Disallow default bitwise copy construct.

◆ block() [2/3]

block ( const pointField blockPointField,
const curvedEdgeList edges,
Istream is 
)

Construct from components with Istream.

Definition at line 32 of file block.C.

◆ block() [3/3]

block ( const blockDescriptor blockDesc)

Construct from a block definition.

Definition at line 45 of file block.C.

◆ ~block()

~block ( )

Destructor.

Definition at line 56 of file block.C.

Member Function Documentation

◆ createPoints()

void createPoints ( ) const
private

◆ createCells()

void createCells ( ) const
private

Creates cells for filling the block.

Definition at line 240 of file blockCreate.C.

References k.

◆ createBoundary()

void createBoundary ( ) const
private

Creates boundary patch faces for the block.

Definition at line 277 of file blockCreate.C.

References k.

◆ operator=()

void operator= ( const block )
private

Disallow default bitwise assignment.

◆ clone()

autoPtr<block> clone ( ) const
inline

Clone.

Definition at line 112 of file block.H.

References NotImplemented.

◆ blockDef()

const Foam::blockDescriptor & blockDef ( ) const
inline

Return the block definition.

Definition at line 41 of file blockI.H.

◆ vtxLabel()

Foam::label vtxLabel ( label  i,
label  j,
label  k 
) const
inline

Vertex label offset for a particular i,j,k position.

Definition at line 28 of file blockI.H.

References k, blockDescriptor::meshDensity(), x, and y.

Referenced by block::createPoints(), Foam::facePoint(), and Foam::facePointN().

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

◆ points()

const Foam::pointField & points ( ) const

Return the points for filling the block.

Definition at line 62 of file block.C.

◆ cells()

const Foam::labelListList & cells ( ) const

Return the cells for filling the block.

Definition at line 73 of file block.C.

◆ boundaryPatches()

const Foam::labelListListList & boundaryPatches ( ) const

Return the boundary patch faces for the block.

Definition at line 84 of file block.C.

◆ clearGeom()

void clearGeom ( )

Clear geometry (internal points, cells, boundaryPatches)

Definition at line 458 of file blockCreate.C.

Friends And Related Function Documentation

◆ operator<<

Ostream& operator<< ( Ostream ,
const block  
)
friend

Field Documentation

◆ vertices_

pointField vertices_
mutableprivate

List of vertices.

Definition at line 70 of file block.H.

Referenced by block::createPoints().

◆ cells_

labelListList cells_
mutableprivate

List of cells.

Definition at line 73 of file block.H.

◆ boundaryPatches_

labelListListList boundaryPatches_
mutableprivate

Boundary patches.

Definition at line 76 of file block.H.


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