Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
ensightCells Class Reference

Sorting/classification of cells (3D) into corresponding ensight element types. More...

Inheritance diagram for ensightCells:
Inheritance graph
[legend]
Collaboration diagram for ensightCells:
Collaboration graph
[legend]

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, nTypessizes () const
 
const labelListcellIds () 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
 
- Public Member Functions inherited from ensightPart
 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 stringname () 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

- Protected Member Functions inherited from ensightPart
const labelListaddressing () const noexcept
 
labelListaddressing () noexcept
 
void clear ()
 
void incrAddressing (const label off)
 
void decrAddressing (const label off)
 

Detailed Description

Sorting/classification of cells (3D) into corresponding ensight element types.

Definition at line 48 of file ensightCells.H.

Member Enumeration Documentation

◆ elemType

enum elemType
Enumerator
TETRA4 

"tetra4"

PYRAMID5 

"pyramid5"

PENTA6 

"penta6"

HEXA8 

"hexa8"

NFACED 

"nfaced"

Definition at line 58 of file ensightCells.H.

Constructor & Destructor Documentation

◆ ensightCells() [1/2]

Definition at line 71 of file ensightCells.C.

◆ ensightCells() [2/2]

ensightCells ( const string description)
explicit

Definition at line 79 of file ensightCells.C.

References ensightPart::rename().

Here is the call graph for this function:

◆ ~ensightCells()

virtual ~ensightCells ( )
virtualdefault

Member Function Documentation

◆ key()

const char * key ( const elemType  etype)
inlinestatic

Definition at line 36 of file ensightCellsI.H.

Referenced by ensightCells::writeDict().

Here is the caller graph for this function:

◆ TypeName()

TypeName ( "ensightCells"  )

◆ size() [1/2]

Foam::label size ( const elemType  etype) const
inline

Definition at line 54 of file ensightCellsI.H.

Referenced by Foam::ensightOutput::writeField().

Here is the caller graph for this function:

◆ range()

Foam::labelRange range ( const elemType  etype) const
inline

Definition at line 60 of file ensightCellsI.H.

◆ total() [1/2]

Foam::label total ( ) const

Definition at line 102 of file ensightCells.C.

References forAll.

Referenced by Foam::ensightOutput::writeField().

Here is the caller graph for this function:

◆ total() [2/2]

Foam::label total ( const elemType  etype) const
inline

Definition at line 48 of file ensightCellsI.H.

◆ totals()

const Foam::FixedList< Foam::label, 5 > & totals ( ) const
inline

Definition at line 42 of file ensightCellsI.H.

◆ sizes()

Foam::FixedList< Foam::label, 5 > sizes ( ) const

Definition at line 89 of file ensightCells.C.

References Foam::BitOps::count(), and forAll.

Here is the call graph for this function:

◆ cellIds() [1/2]

const Foam::labelList & cellIds ( ) const
inline

Definition at line 66 of file ensightCellsI.H.

Referenced by ensightCells::meshPointMap(), and Foam::ensightOutput::writeField().

Here is the caller graph for this function:

◆ cellIds() [2/2]

const Foam::labelUList cellIds ( const elemType  etype) const
inline

Definition at line 73 of file ensightCellsI.H.

References range.

◆ meshPointMap()

Foam::Map< Foam::label > meshPointMap ( const polyMesh mesh) const

Definition at line 30 of file ensightCellsAddr.C.

References ensightCells::cellIds(), mesh, nPoints, and ensightPart::size().

Here is the call graph for this function:

◆ classify() [1/3]

void classify ( const polyMesh mesh)

Definition at line 231 of file ensightCells.C.

References mesh, and primitiveMesh::nCells().

Referenced by ensightMesh::correct().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ classify() [2/3]

void classify ( const polyMesh mesh,
const labelUList cellIds 
)

Definition at line 239 of file ensightCells.C.

References mesh.

◆ classify() [3/3]

void classify ( const polyMesh mesh,
const bitSet selection 
)

Definition at line 249 of file ensightCells.C.

References mesh.

◆ clearOut()

void clearOut ( )

Definition at line 124 of file ensightCells.C.

◆ clear()

void clear ( )

Definition at line 113 of file ensightCells.C.

References ensightPart::clear(), and Foam::Zero.

Referenced by ensightMesh::correct().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reduce()

void reduce ( )

Definition at line 128 of file ensightCells.C.

References forAll, and Foam::reduce().

Referenced by ensightMesh::correct().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ sort()

void sort ( )

Definition at line 139 of file ensightCells.C.

References IntRange< IntType >::empty(), range, and Foam::sort().

Here is the call graph for this function:

◆ incrCellIds()

void incrCellIds ( const label  off)
inline

Definition at line 79 of file ensightCellsI.H.

◆ decrCellIds()

void decrCellIds ( const label  off)
inline

Definition at line 85 of file ensightCellsI.H.

◆ uniqueMeshPoints()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeDict()

void writeDict ( Ostream os,
const bool  full = false 
) const
virtual

◆ write()

void write ( ensightGeoFile os,
const polyMesh mesh,
bool  parallel 
) const
virtual

◆ size() [2/2]

label size
inlinenoexcept

Definition at line 150 of file ensightPart.H.

Member Data Documentation

◆ nTypes

constexpr int nTypes = 5
staticconstexpr

Definition at line 68 of file ensightCells.H.

Referenced by ensightCells::write(), and ensightCells::writeDict().

◆ elemNames

const char * elemNames
static
Initial value:
=
{
"tetra4", "pyramid5", "penta6", "hexa8", "nfaced"
}

Definition at line 71 of file ensightCells.H.


The documentation for this class was generated from the following files: