Go to the documentation of this file.
84 void createBoundary();
88 template<
class OutputIterator>
89 OutputIterator addBoundaryFaces
100 void operator=(
const block&) =
delete;
183 mutable label index_;
204 return block::New(dict_, index_++, points_, edges_, faces_, is);
210 virtual ~block() =
default;
const FixedList< List< FixedList< label, 4 > >, 6 > & boundaryPatches() const noexcept
The boundary patch faces for the block.
autoPtr< block > clone() const
Clone.
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
cellShapeList shapes() const
The (hex) cell shapes for filling the block.
A class for handling words, derived from Foam::string.
const word & zoneName() const noexcept
Return the (optional) zone name.
autoPtr< block > operator()(Istream &is) const
const pointField & vertices() const noexcept
Reference to point field defining the block mesh.
TypeName("block")
Runtime type information.
const List< hexCell > & cells() const
The hex cells for filling the block.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const pointField & points() const noexcept
The points for filling the block.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const labelVector & density() const noexcept
The mesh density (number of cells) in the i,j,k directions.
virtual ~block()=default
Destructor.
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))
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
An analytical geometric cellShape.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
iNew(const dictionary &dict, const pointField &points, const blockEdgeList &edges, const blockFaceList &faces)
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.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A 1D vector of objects of type <T> with a fixed length <N>.
A hexahedral cell primitive.
label index(const label i, const label j, const label k) const
Linear addressing index (offset) for an (i,j,k) position.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Class used for the read-construction of.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
string expand(const std::string &s, const HashTable< string > &mapping, const char sigil='$')
Takes the description of the block and the list of curved edges and creates a list of points on edges...