Public Member Functions | Friends | List of all members
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...
 

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 ( const pointField blockPointField,
const curvedEdgeList edges,
Istream is 
)

Construct from components with Istream.

Definition at line 32 of file block.C.

block ( const blockDescriptor blockDesc)

Construct from a block definition.

Definition at line 45 of file block.C.

~block ( )

Destructor.

Definition at line 56 of file block.C.

Referenced by block::clone().

Here is the caller graph for this function:

Member Function Documentation

autoPtr<block> clone ( ) const
inline

Clone.

Definition at line 112 of file block.H.

References block::blockDef(), block::boundaryPatches(), block::cells(), block::clearGeom(), k, NotImplemented, block::operator<<, block::points(), block::vtxLabel(), and block::~block().

Here is the call graph for this function:

const Foam::blockDescriptor & blockDef ( ) const
inline

Return the block definition.

Definition at line 41 of file blockI.H.

Referenced by block::clone().

Here is the caller graph for this function:

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 blockDescriptor::meshDensity(), x, and y.

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

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::pointField & points ( ) const

Return the points for filling the block.

Definition at line 62 of file block.C.

References UList< T >::empty().

Referenced by block::clone(), and Foam::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::labelListList & cells ( ) const

Return the cells for filling the block.

Definition at line 73 of file block.C.

References UList< T >::empty().

Referenced by block::clone(), and Foam::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::labelListListList & boundaryPatches ( ) const

Return the boundary patch faces for the block.

Definition at line 84 of file block.C.

References UList< T >::empty().

Referenced by block::clone(), and Foam::operator<<().

Here is the call graph for this function:

Here is the caller graph for this function:

void clearGeom ( )

Clear geometry (internal points, cells, boundaryPatches)

Definition at line 458 of file blockCreate.C.

References List< T >::clear().

Referenced by block::clone().

Here is the call graph for this function:

Here is the caller graph for this function:

Friends And Related Function Documentation

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

Referenced by block::clone().


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