Creates a single block of cells from point coordinates, numbers of cells in each direction and an expansion ratio. More...
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< block > | clone () const |
Clone. More... | |
~block () | |
Destructor. More... | |
const blockDescriptor & | blockDef () 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 pointField & | points () const |
Return the points for filling the block. More... | |
const labelListList & | cells () const |
Return the cells for filling the block. More... | |
const labelListListList & | boundaryPatches () 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< blockDescriptor > | clone () const |
Clone. More... | |
~blockDescriptor () | |
Destructor. More... | |
const Vector< label > & | density () const |
Return the number of cells in the i,j,k directions. More... | |
const pointField & | blockPointField () const |
Reference to point field defining the block mesh. More... | |
const cellShape & | blockShape () const |
Return the block shape. More... | |
const List< List< point > > & | blockEdgePoints () const |
Return the block points along each edge. More... | |
const scalarListList & | blockEdgeWeights () 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 word & | zoneName () 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 point & | blockPoint (const label i) const |
Return block point at local label i. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const block &) |
Creates a single block of cells from point coordinates, numbers of cells in each direction and an expansion ratio.
block | ( | const pointField & | blockPointField, |
const curvedEdgeList & | edges, | ||
Istream & | is | ||
) |
block | ( | const blockDescriptor & | blockDesc | ) |
~block | ( | ) |
Destructor.
Definition at line 56 of file block.C.
Referenced by block::clone().
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().
|
inline |
Return the block definition.
Definition at line 41 of file blockI.H.
Referenced by block::clone().
|
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().
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<<().
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<<().
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<<().
void clearGeom | ( | ) |
Clear geometry (internal points, cells, boundaryPatches)
Definition at line 458 of file blockCreate.C.
References List< T >::clear().
Referenced by block::clone().
Referenced by block::clone().