Base class for ensightCells, ensightFaces, ensightOutputSurfaces. More...
Public Member Functions | |
TypeNameNoDebug ("ensightPart") | |
Declare type-name, virtual type (without debug switch) More... | |
ensightPart () noexcept | |
Default construct. Index=0, identifier = -1. More... | |
ensightPart (const string &description) | |
Default construct, with description/partName. More... | |
virtual | ~ensightPart ()=default |
Destructor. More... | |
label | index () const |
The index in a list (0-based) More... | |
label & | index () |
The index in a list (0-based) More... | |
label | identifier () const |
OpenFOAM identifier (patch, zone, etc), -1 when not in use. More... | |
label & | identifier () |
OpenFOAM identifier (patch, zone, etc), -1 when not in use. More... | |
bool | empty () const |
Processor-local test for any elements. More... | |
label | size () const |
Processor-local size of all elements. More... | |
const string & | name () const |
The part name or description. More... | |
void | rename (const string &value) |
Change the part name or description. More... | |
void | rename (string &&value) |
Change the part name or description. More... | |
virtual void | writeDict (Ostream &os, const bool full=false) const |
label | operator[] (const label i) const |
Processor-local element id from linear-list of addresses. More... | |
Protected Member Functions | |
const labelList & | addressing () const |
Element addressing. More... | |
labelList & | addressing () |
Element addressing. More... | |
void | clear () |
Clear element addressing. More... | |
void | incrAddressing (const label off) |
Increase addressing by specified offset value. More... | |
void | decrAddressing (const label off) |
Decrease addressing by specified offset value. More... | |
Base class for ensightCells, ensightFaces, ensightOutputSurfaces.
Definition at line 53 of file ensightPart.H.
|
noexcept |
Default construct. Index=0, identifier = -1.
Definition at line 61 of file ensightPart.C.
|
explicit |
Default construct, with description/partName.
Definition at line 70 of file ensightPart.C.
|
virtualdefault |
Destructor.
|
inlineprotected |
Element addressing.
Definition at line 76 of file ensightPart.H.
|
inlineprotected |
Element addressing.
Definition at line 82 of file ensightPart.H.
|
inlineprotected |
Clear element addressing.
Definition at line 88 of file ensightPart.H.
References List< T >::clear().
Referenced by ensightFaces::clear(), and ensightCells::clear().
|
protected |
Increase addressing by specified offset value.
Eg, change local to global id
Definition at line 41 of file ensightPart.C.
|
protected |
Decrease addressing by specified offset value.
Eg, change global to local id
Definition at line 50 of file ensightPart.C.
TypeNameNoDebug | ( | "ensightPart" | ) |
Declare type-name, virtual type (without debug switch)
|
inline |
The index in a list (0-based)
Definition at line 124 of file ensightPart.H.
Referenced by ensightOutputSurface::write(), ensightFaces::write(), ensightCells::write(), Foam::ensightOutput::Detail::writeFaceSubField(), Foam::ensightOutput::writeField(), ensightOutputSurface::writePointData(), and Foam::ensightOutput::writePointField().
|
inline |
The index in a list (0-based)
Definition at line 130 of file ensightPart.H.
|
inline |
OpenFOAM identifier (patch, zone, etc), -1 when not in use.
Definition at line 136 of file ensightPart.H.
Referenced by ensightMesh::correct().
|
inline |
OpenFOAM identifier (patch, zone, etc), -1 when not in use.
Definition at line 142 of file ensightPart.H.
|
inline |
Processor-local test for any elements.
Definition at line 148 of file ensightPart.H.
Referenced by ensightOutputSurface::writePointData().
|
inline |
Processor-local size of all elements.
Definition at line 154 of file ensightPart.H.
Referenced by ensightCells::meshPointMap().
|
inline |
The part name or description.
Definition at line 160 of file ensightPart.H.
Referenced by ensightOutputSurface::write(), ensightFaces::write(), and ensightCells::write().
|
inline |
Change the part name or description.
Definition at line 166 of file ensightPart.H.
Referenced by ensightMesh::correct(), ensightCells::ensightCells(), and ensightFaces::ensightFaces().
|
inline |
Change the part name or description.
Definition at line 172 of file ensightPart.H.
Write information about the object as a dictionary, optionally write all element addresses
Reimplemented in ensightCells, and ensightFaces.
Definition at line 182 of file ensightPart.H.
|
inline |
Processor-local element id from linear-list of addresses.
Definition at line 189 of file ensightPart.H.