Go to the documentation of this file.
58 #ifndef blockDescriptor_H
59 #define blockDescriptor_H
117 label edgePointsWeights
127 void findCurvedFaces();
240 Ostream&
operator<<(Ostream& os,
const blockDescriptor& bd);
243 Ostream&
operator<<(Ostream& os,
const InfoProxy<blockDescriptor>& info);
const point & blockPoint(const label i) const
Return block point for local label i.
const pointField & vertices() const
Reference to point field defining the block mesh.
A class for handling words, derived from Foam::string.
A helper class for outputting values to Ostream.
const cellShape & blockShape() const
Return the block shape.
label facePointLabel(const direction facei, const label i, const label j) const
static void write(Ostream &, const label blocki, const dictionary &)
Write block index with dictionary lookup.
const word & zoneName() const
Return the (optional) zone name.
bool vertex(const label i, const label j, const label k) const
Return true if point i,j,k addresses a block vertex.
label nCurvedFaces() const
Number of curved faces in this block.
const FixedList< label, 6 > & curvedFaces() const
Curved-face labels for each block-face (-1 for flat faces)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A simple i-j-k (row-major order) to linear addressing for a rectilinear mesh. Since the underlying me...
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
const List< gradingDescriptors > & grading() const
Expansion ratios in all directions.
FixedList< pointField, 6 > facePoints(const pointField &points) const
Return the list of face-points for all of the faces of the block.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
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.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
An analytical geometric cellShape.
bool edge(const label i, const label j, const label k) const
Return true if point i,j,k addresses a block edge.
label edgesPointsWeights(pointField(&edgePoints)[12], scalarList(&edgeWeights)[12]) const
Calculate the points and weights for all edges.
blockDescriptor(const cellShape &bshape, const pointField &vertices, const blockEdgeList &edges, const blockFaceList &faces, const labelVector &density, const UList< gradingDescriptors > &expand, const word &zoneName="")
Construct from components. Optional cellSet/zone name.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
string expand(const std::string &str, const HashTable< string, word, string::hash > &mapping, const char sigil='$')
label ListType::const_reference const label start
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...
label k
Boltzmann constant.
InfoProxy< blockDescriptor > info() const
Return info proxy.
const labelVector & density() const
Return the mesh density (number of cells) in the i,j,k directions.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Takes the description of the block and the list of curved edges and creates a list of points on edges...
const blockFaceList & blockFaces() const
Return reference to the list of curved faces.
Ostream & operator<<(Ostream &, const boundaryPatch &)
void correctFacePoints(FixedList< pointField, 6 > &) const
Correct the location of the given face-points.