Go to the documentation of this file.
84 void createBoundary();
88 template<
class OutputIterator>
89 OutputIterator addBoundaryFaces
100 void operator=(
const block&) =
delete;
182 mutable label index_;
203 return block::New(dict_, index_++, points_, edges_, faces_, is);
209 virtual ~block() =
default;
229 Ostream&
operator<<(Ostream& os,
const block& blk);
autoPtr< block > clone() const
Clone.
Creates a single block of cells from point coordinates, numbers of cells in each direction and an exp...
const pointField & vertices() const
Reference to point field defining the block mesh.
A class for handling words, derived from Foam::string.
autoPtr< block > operator()(Istream &is) const
const word & zoneName() const
Return the (optional) zone name.
TypeName("block")
Runtime type information.
string expand(const std::string &s, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
const pointField & points() const
The points for filling the block.
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
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,...
const FixedList< List< FixedList< label, 4 > >, 6 > & boundaryPatches() const
The boundary patch faces for the block.
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)
const List< FixedList< label, 8 > > & cells() const
The cells for filling the block.
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>.
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.
const labelVector & density() const
Return the mesh density (number of cells) in the i,j,k directions.
Takes the description of the block and the list of curved edges and creates a list of points on edges...