Takes the description of the block and the list of curved edges and creates a list of points on edges together with the weighting factors. More...
Public Member Functions | |
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... | |
Private Member Functions | |
void | makeBlockEdges () |
Set the points/weights for all edges. More... | |
void | setEdge (label edgeI, label start, label end, label dim) |
Set the edge points/weights. More... | |
void | operator= (const blockDescriptor &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const pointField & | blockPointField_ |
Reference to point field defining the block mesh. More... | |
const curvedEdgeList & | curvedEdges_ |
Reference to a list of curved edges. More... | |
cellShape | blockShape_ |
Block shape. More... | |
Vector< label > | meshDensity_ |
The number of cells in the i,j,k directions. More... | |
List< List< point > > | edgePoints_ |
Block edge points. More... | |
scalarListList | edgeWeights_ |
Block edge weighting factors. More... | |
List< gradingDescriptors > | expand_ |
Expansion ratios in all directions. More... | |
word | zoneName_ |
Name of the zone (empty string if none) More... | |
Friends | |
Ostream & | operator<< (Ostream &, const blockDescriptor &) |
Takes the description of the block and the list of curved edges and creates a list of points on edges together with the weighting factors.
Definition at line 61 of file blockDescriptor.H.
blockDescriptor | ( | const cellShape & | bshape, |
const pointField & | blockPointField, | ||
const curvedEdgeList & | edges, | ||
const Vector< label > & | meshDensity, | ||
const UList< gradingDescriptors > & | expand, | ||
const word & | zoneName = "" |
||
) |
Construct from components. Optional cellSet/zone name.
Definition at line 32 of file blockDescriptor.C.
References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
blockDescriptor | ( | const pointField & | blockPointField, |
const curvedEdgeList & | edges, | ||
Istream & | is | ||
) |
Construct from Istream.
Definition at line 63 of file blockDescriptor.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, token::info(), token::isPunctuation(), token::isWord(), token::pToken(), Istream::putBack(), List::size(), and token::wordToken().
~blockDescriptor | ( | ) |
Destructor.
Definition at line 171 of file blockDescriptor.C.
|
private |
Set the points/weights for all edges.
Definition at line 32 of file blockDescriptorEdges.C.
References blockDescriptor::meshDensity_, blockDescriptor::setEdge(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Set the edge points/weights.
Definition at line 61 of file blockDescriptorEdges.C.
References curvedEdge::compare(), forAll, Foam::inv(), lineDivide::lambdaDivisions(), p, lineDivide::points(), List::setSize(), and List::size().
Referenced by blockDescriptor::makeBlockEdges().
|
private |
Disallow default bitwise assignment.
|
inline |
Return the number of cells in the i,j,k directions.
Definition at line 145 of file blockDescriptor.H.
References blockDescriptor::meshDensity_.
const Foam::pointField & blockPointField | ( | ) | const |
Reference to point field defining the block mesh.
Definition at line 177 of file blockDescriptor.C.
const Foam::cellShape & blockShape | ( | ) | const |
Return the block shape.
Definition at line 183 of file blockDescriptor.C.
Referenced by Foam::operator<<().
const Foam::List< Foam::List< Foam::point > > & blockEdgePoints | ( | ) | const |
Return the block points along each edge.
Definition at line 190 of file blockDescriptor.C.
Referenced by block::createPoints().
const Foam::scalarListList & blockEdgeWeights | ( | ) | const |
Return the weightings along each edge.
Definition at line 196 of file blockDescriptor.C.
Referenced by block::createPoints().
const Foam::Vector< Foam::label > & meshDensity | ( | ) | const |
Return the mesh density (number of cells) in the i,j,k directions.
Definition at line 202 of file blockDescriptor.C.
Referenced by block::createPoints(), Foam::faceNij(), Foam::facePoint(), Foam::facePointN(), Foam::operator<<(), and block::vtxLabel().
const Foam::word & zoneName | ( | ) | const |
Return the (optional) zone name.
Definition at line 208 of file blockDescriptor.C.
Referenced by Foam::operator<<().
Foam::label nPoints | ( | ) | const |
Return the number of points.
Definition at line 214 of file blockDescriptor.C.
Referenced by block::createPoints().
Foam::label nCells | ( | ) | const |
Return the number of cells.
Definition at line 225 of file blockDescriptor.C.
const Foam::point & blockPoint | ( | const label | i | ) | const |
Return block point at local label i.
Definition at line 236 of file blockDescriptor.C.
Referenced by block::createPoints().
|
friend |
|
private |
Reference to point field defining the block mesh.
Definition at line 66 of file blockDescriptor.H.
|
private |
Reference to a list of curved edges.
Definition at line 69 of file blockDescriptor.H.
|
private |
Block shape.
Definition at line 72 of file blockDescriptor.H.
The number of cells in the i,j,k directions.
Definition at line 75 of file blockDescriptor.H.
Referenced by blockDescriptor::density(), and blockDescriptor::makeBlockEdges().
Block edge points.
Definition at line 78 of file blockDescriptor.H.
|
private |
Block edge weighting factors.
Definition at line 81 of file blockDescriptor.H.
|
private |
Expansion ratios in all directions.
Definition at line 84 of file blockDescriptor.H.
Referenced by Foam::operator<<().
|
private |
Name of the zone (empty string if none)
Definition at line 87 of file blockDescriptor.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.