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 blockDescriptor &)=default | |
void | operator= (const blockDescriptor &)=delete |
blockDescriptor (const cellShape &bshape, const pointField &vertices, const blockEdgeList &edges, const blockFaceList &faces, const labelVector &density, const UList< gradingDescriptors > &expand=UList< gradingDescriptors >::null(), const word &zoneName=word::null) | |
blockDescriptor (const dictionary &dict, const label blockIndex, const pointField &vertices, const blockEdgeList &edges, const blockFaceList &faces, Istream &is) | |
const pointField & | vertices () const noexcept |
const blockFaceList & | blockFaces () const noexcept |
const cellShape & | blockShape () const noexcept |
const labelVector & | density () const noexcept |
const List< gradingDescriptors > & | grading () const noexcept |
const word & | zoneName () const noexcept |
const FixedList< label, 6 > & | curvedFaces () const noexcept |
label | nCurvedFaces () const noexcept |
const point & | blockPoint (const label i) const |
label | facePointLabel (const direction facei, const label i, const label j) const |
bool | vertex (const label i, const label j, const label k) const |
bool | edge (const label i, const label j, const label k) const |
int | edgesPointsWeights (pointField(&edgesPoints)[12], scalarList(&edgesWeights)[12]) const |
bool | edgePointsWeights (const label edgei, pointField &edgePoints, scalarList &edgeWeights, const label nDiv, const gradingDescriptors &gd=gradingDescriptors()) const |
bool | edgePointsWeights (const label edgei, pointField &edgePoints, scalarList &edgeWeights) const |
bool | flatFaceOrEdge (const label i, const label j, const label k) const |
FixedList< pointField, 6 > | facePoints (const pointField &points) const |
void | correctFacePoints (FixedList< pointField, 6 > &) const |
InfoProxy< blockDescriptor > | info () const |
![]() | |
ijkMesh () | |
ijkMesh (const labelVector &ijk) | |
ijkMesh (const label nx, const label ny, const label nz) | |
label | nPoints () const |
label | nCells () const |
label | nFaces () const |
label | nInternalFaces () const |
label | nBoundaryFaces () const |
label | nBoundaryFaces (const direction shapeFacei) const |
label | cellLabel (const label i, const label j, const label k) const |
label | cellLabel (const labelVector &ijk) const |
label | pointLabel (const label i, const label j, const label k) const |
label | pointLabel (const labelVector &ijk) const |
hexCell | vertLabels (const label i, const label j, const label k) const |
hexCell | vertLabels (const labelVector &ijk) const |
![]() | |
ijkAddressing () | |
ijkAddressing (const labelVector &ijk) | |
ijkAddressing (const label ni, const label nj, const label nk) | |
bool | empty () const |
const labelVector & | sizes () const |
labelVector & | sizes () |
label | size () const |
const label & | size (const vector::components cmpt) const |
void | clear () |
void | reset (const label ni, const label nj, const label nk) |
void | reset (const labelVector &newSizes) |
label | index (const label i, const label j, const label k) const |
label | index (const labelVector &ijk) const |
labelVector | index (const label idx) const |
void | checkIndex (const label i, const label j, const label k, const bool allowExtra=false) const |
void | checkIndex (const labelVector &ijk, const bool allowExtra=false) const |
void | checkSizes () const |
void | checkSizes (const labelVector &other) const |
void | checkSizes (const label nTotal) const |
Static Public Member Functions | |
static void | write (Ostream &, const label blocki, const dictionary &) |
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.
For a given block, the correspondence between the ordering of vertex labels and face labels is shown below. For vertex numbering in the sequence 0 to 7 (block, centre): faces 0 (f0) and 1 are left and right, respectively; faces 2 and 3 are front and back; and faces 4 and 5 are bottom and top:
7 ---- 6 f5 |\ :\ f3 | | 4 ---- 5 \ | 3.|....2 | \ | \| \| f2 f4 0 ---- 1 Y Z \ | f0 ------ f1 \| o--- X
Definition at line 74 of file blockDescriptor.H.
|
default |
blockDescriptor | ( | const cellShape & | bshape, |
const pointField & | vertices, | ||
const blockEdgeList & | edges, | ||
const blockFaceList & | faces, | ||
const labelVector & | density, | ||
const UList< gradingDescriptors > & | expand = UList<gradingDescriptors>::null() , |
||
const word & | zoneName = word::null |
||
) |
Definition at line 190 of file blockDescriptor.C.
References Foam::exit(), Foam::stringOps::expand(), Foam::FatalError, and FatalErrorInFunction.
blockDescriptor | ( | const dictionary & | dict, |
const label | blockIndex, | ||
const pointField & | vertices, | ||
const blockEdgeList & | edges, | ||
const blockFaceList & | faces, | ||
Istream & | is | ||
) |
Definition at line 223 of file blockDescriptor.C.
References token::BEGIN_LIST, Foam::check(), dict, Foam::endl(), Foam::exit(), Foam::stringOps::expand(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, token::info(), IOWarningInFunction, token::isPunctuation(), token::isWord(), token::pToken(), Istream::putBack(), ijkAddressing::sizes(), dictionary::subOrEmptyDict(), token::wordToken(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
delete |
|
inlinenoexcept |
Definition at line 25 of file blockDescriptorI.H.
Referenced by projectFace::project().
|
inlinenoexcept |
Definition at line 32 of file blockDescriptorI.H.
|
inlinenoexcept |
Definition at line 39 of file blockDescriptorI.H.
Referenced by Foam::operator<<(), and projectFace::project().
|
inlinenoexcept |
Definition at line 46 of file blockDescriptorI.H.
References ijkAddressing::sizes().
Referenced by Foam::faceNij(), Foam::facePoint(), Foam::facePointN(), Foam::operator<<(), and projectFace::project().
|
inlinenoexcept |
Definition at line 53 of file blockDescriptorI.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 59 of file blockDescriptorI.H.
Referenced by Foam::operator<<().
|
inlinenoexcept |
Definition at line 66 of file blockDescriptorI.H.
|
inlinenoexcept |
Definition at line 72 of file blockDescriptorI.H.
|
inline |
Definition at line 78 of file blockDescriptorI.H.
|
inline |
Definition at line 85 of file blockDescriptorI.H.
|
inline |
Definition at line 122 of file blockDescriptorI.H.
References k.
Definition at line 135 of file blockDescriptorI.H.
References k.
int edgesPointsWeights | ( | pointField(&) | edgesPoints[12], |
scalarList(&) | edgesWeights[12] | ||
) | const |
Definition at line 122 of file blockDescriptorEdges.C.
References hexCell::modelEdges().
bool edgePointsWeights | ( | const label | edgei, |
pointField & | edgePoints, | ||
scalarList & | edgeWeights, | ||
const label | nDiv, | ||
const gradingDescriptors & | gd = gradingDescriptors() |
||
) | const |
Definition at line 147 of file blockDescriptorEdges.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and hexCell::modelEdges().
bool edgePointsWeights | ( | const label | edgei, |
pointField & | edgePoints, | ||
scalarList & | edgeWeights | ||
) | const |
Definition at line 178 of file blockDescriptorEdges.C.
References Foam::exit(), Foam::FatalError, FatalErrorInFunction, and hexCell::modelEdges().
|
inline |
Definition at line 148 of file blockDescriptorI.H.
Foam::FixedList< Foam::pointField, 6 > facePoints | ( | const pointField & | points | ) | const |
Definition at line 319 of file blockDescriptor.C.
References k, points, and FixedList::setSize().
void correctFacePoints | ( | FixedList< pointField, 6 > & | facePoints | ) | const |
Definition at line 375 of file blockDescriptor.C.
References forAll.
|
static |
Definition at line 395 of file blockDescriptor.C.
References dictionary::findDict(), os(), and Foam::blockMeshTools::write().
|
inline |
Definition at line 260 of file blockDescriptor.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.