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


Classes | |
| class | iNew |
| Class used for the read-construction of. More... | |
Public Member Functions | |
| TypeName ("block") | |
| Runtime type information. More... | |
| declareRunTimeSelectionTable (autoPtr, block, Istream,(const dictionary &dict, const label index, const pointField &vertices, const blockEdgeList &edges, const blockFaceList &faces, Istream &is),(dict, index, vertices, edges, faces, is)) | |
| block (const dictionary &dict, const label index, const pointField &vertices, const blockEdgeList &edges, const blockFaceList &faces, Istream &is) | |
| Construct from components with Istream. More... | |
| block (const blockDescriptor &) | |
| Construct from a block definition. More... | |
| autoPtr< block > | clone () const |
| Clone. More... | |
| virtual | ~block () |
| Destructor. More... | |
| const pointField & | points () const |
| Return the points for filling the block. More... | |
| List< FixedList< label, 8 > > | cells () const |
| Return the cells for filling the block. More... | |
| const FixedList< List< FixedList< label, 4 > >, 6 > & | boundaryPatches () const |
| Return the boundary patch faces for the block. More... | |
Public Member Functions inherited from blockDescriptor | |
| blockDescriptor (const cellShape &, const pointField &vertices, const blockEdgeList &, const blockFaceList &, const Vector< label > &density, const UList< gradingDescriptors > &expand, const word &zoneName="") | |
| Construct from components. Optional cellSet/zone name. More... | |
| blockDescriptor (const dictionary &dict, const label index, const pointField &vertices, const blockEdgeList &, const blockFaceList &, Istream &) | |
| Construct from Istream. More... | |
| const pointField & | vertices () const |
| Reference to point field defining the block mesh. More... | |
| const blockFaceList & | faces () const |
| Return reference to the list of curved faces. More... | |
| const cellShape & | blockShape () const |
| Return the block shape. More... | |
| const Vector< label > & | density () 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 FixedList< label, 6 > & | curvedFaces () const |
| Curved-face labels for each block-face (-1 for flat faces) More... | |
| label | nCurvedFaces () const |
| Number of curved faces in this block. More... | |
| const point & | blockPoint (const label i) const |
| Return block point for local label i. More... | |
| label | pointLabel (const label i, const label j, const label k) const |
| Vertex label offset for a particular i,j,k position. More... | |
| label | facePointLabel (const label facei, const label i, const label j) const |
| Face vertex label offset for a particular i,j,k position. More... | |
| bool | vertex (const label i, const label j, const label k) const |
| Return true if point i,j,k addresses a block vertex. More... | |
| bool | edge (const label i, const label j, const label k) const |
| Return true if point i,j,k addresses a block edge. More... | |
| label | edgesPointsWeights (pointField(&edgePoints)[12], scalarList(&edgeWeights)[12]) const |
| Calculate the points and weights for all edges. More... | |
| bool | flatFaceOrEdge (const label i, const label j, const label k) const |
| Return true if point i,j,k addresses a block flat face or edge. More... | |
| FixedList< pointField, 6 > | facePoints (const pointField &points) const |
| Return the list of face-points for all of the faces of the block. More... | |
| void | correctFacePoints (FixedList< pointField, 6 > &) const |
| Correct the location of the given face-points. More... | |
Static Public Member Functions | |
| static autoPtr< block > | New (const dictionary &dict, const label index, const pointField &points, const blockEdgeList &edges, const blockFaceList &faces, Istream &) |
| New function which constructs and returns pointer to a block. More... | |
Static Public Member Functions inherited from blockDescriptor | |
| static void | write (Ostream &, const label blocki, const dictionary &) |
| Write block index with dictionary lookup. 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 dictionary & | dict, |
| const label | index, | ||
| const pointField & | vertices, | ||
| const blockEdgeList & | edges, | ||
| const blockFaceList & | faces, | ||
| Istream & | is | ||
| ) |
| block | ( | const blockDescriptor & | blockDesc | ) |
Construct from a block definition.
Definition at line 55 of file block.C.
References block::New().

|
inlinevirtual |
Destructor.
Definition at line 185 of file block.H.
References block::boundaryPatches(), block::cells(), block::operator<<, and block::points().

| TypeName | ( | "block" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| block | , | ||
| Istream | , | ||
| (const dictionary &dict, const label index, const pointField &vertices, const blockEdgeList &edges, const blockFaceList &faces, Istream &is) | , | ||
| (dict, index, vertices, edges, faces, is) | |||
| ) |
Clone.
Definition at line 133 of file block.H.
References block::iNew::iNew(), block::New(), NotImplemented, and block::points().

|
static |
New function which constructs and returns pointer to a block.
Definition at line 65 of file block.C.
References dict, Foam::endl(), blockDescriptor::faces(), InfoInFunction, block::points(), and Istream::putBack().
Referenced by block::block(), block::clone(), and block::iNew::operator()().


|
inline |
Return the points for filling the block.
Definition at line 28 of file blockI.H.
Referenced by block::clone(), block::New(), Foam::operator<<(), and block::~block().

| Foam::List< Foam::FixedList< Foam::label, 8 > > cells | ( | ) | const |
Return the cells for filling the block.
Definition at line 349 of file blockCreate.C.
References blockDescriptor::density(), k, blockDescriptor::nCells(), patchi, blockDescriptor::pointLabel(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by Foam::operator<<(), and block::~block().


|
inline |
Return the boundary patch faces for the block.
Definition at line 35 of file blockI.H.
Referenced by Foam::operator<<(), and block::~block().

Referenced by block::~block().
1.8.13