Sorting/classification of cells (3D) into corresponding ensight element types. More...
Public Types | |
enum | elemType { TETRA4 = 0, PYRAMID5, PENTA6, HEXA8, NFACED } |
Public Member Functions | |
TypeName ("ensightCells") | |
ensightCells () | |
ensightCells (const string &description) | |
virtual | ~ensightCells ()=default |
label | size (const elemType etype) const |
labelRange | range (const elemType etype) const |
label | total () const |
label | total (const elemType etype) const |
const FixedList< label, nTypes > & | totals () const |
FixedList< label, nTypes > | sizes () const |
const labelList & | cellIds () const |
const labelUList | cellIds (const elemType etype) const |
Map< label > | meshPointMap (const polyMesh &mesh) const |
void | classify (const polyMesh &mesh) |
void | classify (const polyMesh &mesh, const labelUList &cellIds) |
void | classify (const polyMesh &mesh, const bitSet &selection) |
void | clearOut () |
void | clear () |
void | reduce () |
void | sort () |
void | incrCellIds (const label off) |
void | decrCellIds (const label off) |
label | uniqueMeshPoints (const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const |
virtual void | writeDict (Ostream &os, const bool full=false) const |
virtual void | write (ensightGeoFile &os, const polyMesh &mesh, bool parallel) const |
label | size () const noexcept |
![]() | |
TypeNameNoDebug ("ensightPart") | |
ensightPart () | |
ensightPart (const string &description) | |
virtual | ~ensightPart ()=default |
label | index () const noexcept |
label & | index () noexcept |
label | identifier () const noexcept |
label & | identifier () noexcept |
bool | empty () const noexcept |
label | size () const noexcept |
const string & | name () const noexcept |
void | rename (const string &value) |
void | rename (string &&value) |
label | operator[] (const label i) const |
Static Public Member Functions | |
static const char * | key (const elemType etype) |
Static Public Attributes | |
static constexpr int | nTypes = 5 |
static const char * | elemNames [nTypes] |
Additional Inherited Members | |
![]() | |
const labelList & | addressing () const noexcept |
labelList & | addressing () noexcept |
void | clear () |
void | incrAddressing (const label off) |
void | decrAddressing (const label off) |
Sorting/classification of cells (3D) into corresponding ensight element types.
Definition at line 48 of file ensightCells.H.
enum elemType |
Enumerator | |
---|---|
TETRA4 | "tetra4" |
PYRAMID5 | "pyramid5" |
PENTA6 | "penta6" |
HEXA8 | "hexa8" |
NFACED | "nfaced" |
Definition at line 58 of file ensightCells.H.
ensightCells | ( | ) |
Definition at line 71 of file ensightCells.C.
|
explicit |
Definition at line 79 of file ensightCells.C.
References ensightPart::rename().
|
virtualdefault |
|
inlinestatic |
Definition at line 36 of file ensightCellsI.H.
Referenced by ensightCells::writeDict().
TypeName | ( | "ensightCells" | ) |
|
inline |
Definition at line 54 of file ensightCellsI.H.
Referenced by Foam::ensightOutput::writeField().
|
inline |
Definition at line 60 of file ensightCellsI.H.
Foam::label total | ( | ) | const |
Definition at line 102 of file ensightCells.C.
References forAll.
Referenced by Foam::ensightOutput::writeField().
|
inline |
Definition at line 48 of file ensightCellsI.H.
|
inline |
Definition at line 42 of file ensightCellsI.H.
Foam::FixedList< Foam::label, 5 > sizes | ( | ) | const |
Definition at line 89 of file ensightCells.C.
References Foam::BitOps::count(), and forAll.
|
inline |
Definition at line 66 of file ensightCellsI.H.
Referenced by ensightCells::meshPointMap(), and Foam::ensightOutput::writeField().
|
inline |
Definition at line 73 of file ensightCellsI.H.
References range.
Definition at line 30 of file ensightCellsAddr.C.
References ensightCells::cellIds(), mesh, nPoints, and ensightPart::size().
void classify | ( | const polyMesh & | mesh | ) |
Definition at line 231 of file ensightCells.C.
References mesh, and primitiveMesh::nCells().
Referenced by ensightMesh::correct().
void classify | ( | const polyMesh & | mesh, |
const labelUList & | cellIds | ||
) |
Definition at line 239 of file ensightCells.C.
References mesh.
Definition at line 249 of file ensightCells.C.
References mesh.
void clearOut | ( | ) |
Definition at line 124 of file ensightCells.C.
void clear | ( | ) |
Definition at line 113 of file ensightCells.C.
References ensightPart::clear(), and Foam::Zero.
Referenced by ensightMesh::correct().
void reduce | ( | ) |
Definition at line 128 of file ensightCells.C.
References forAll, and Foam::reduce().
Referenced by ensightMesh::correct().
void sort | ( | ) |
Definition at line 139 of file ensightCells.C.
References IntRange< IntType >::empty(), range, and Foam::sort().
|
inline |
Definition at line 79 of file ensightCellsI.H.
|
inline |
Definition at line 85 of file ensightCellsI.H.
Foam::label uniqueMeshPoints | ( | const polyMesh & | mesh, |
labelList & | uniqueMeshPointLabels, | ||
bool | parallel | ||
) | const |
Definition at line 215 of file ensightCellsAddr.C.
References mesh, and List::null().
Referenced by Foam::ensightOutput::writePointField().
Reimplemented from ensightPart.
Definition at line 258 of file ensightCells.C.
References Ostream::beginBlock(), Ostream::endBlock(), Foam::endEntry(), ensightCells::key(), Foam::name(), ensightCells::nTypes, os(), Foam::type(), Ostream::writeEntry(), Ostream::writeKeyword(), and UList::writeList().
|
virtual |
< Collective write?
Definition at line 256 of file ensightCellsIO.C.
References ensightPart::index(), mesh, ensightPart::name(), ensightCells::NFACED, nPoints, ensightCells::nTypes, os(), UPstream::parRun(), polyMesh::points(), and Foam::ensightOutput::Detail::writeCoordinates().
|
inlinenoexcept |
Definition at line 150 of file ensightPart.H.
|
staticconstexpr |
Definition at line 68 of file ensightCells.H.
Referenced by ensightCells::write(), and ensightCells::writeDict().
|
static |
Definition at line 71 of file ensightCells.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.