An implementation of ensightPart to hold volume mesh faces. More...


Public Member Functions | |
| TypeName ("ensightFaces") | |
| Runtime type information. More... | |
| ensightPartFaces (label partNumber, const string &partDescription) | |
| Construct empty part with number and description. More... | |
| ensightPartFaces (label partNumber, const string &partDescription, const pointField &, const faceList &, const bool contiguousPoints=false) | |
| Construct part with number, description, points and faces. More... | |
| ensightPartFaces (label partNumber, const polyMesh &, const polyPatch &) | |
| Construct from polyMesh and polyPatch. More... | |
| ensightPartFaces (const ensightPartFaces &) | |
| Copy constructor. More... | |
| ensightPartFaces (Istream &) | |
| Reconstruct part characteristics (eg, element types) from Istream. More... | |
| virtual | ~ensightPartFaces () |
| Destructor. More... | |
| virtual void | writeGeometry (ensightGeoFile &) const |
| Write geometry. More... | |
| virtual const List< word > & | elementTypes () const |
| Static listing of the element types. More... | |
| void | operator= (const ensightPartFaces &)=delete |
| Disallow default bitwise assignment. More... | |
Public Member Functions inherited from ensightPart | |
| TypeName ("ensightPart") | |
| Runtime type information. More... | |
| ensightPart () | |
| Construct null. More... | |
| ensightPart (label partNumber, const string &partDescription) | |
| Construct empty part with number and description. More... | |
| ensightPart (label partNumber, const string &partDescription, const pointField &points) | |
| Construct part with number, description and points reference. More... | |
| ensightPart (const ensightPart &) | |
| Copy constructor. More... | |
| declareRunTimeSelectionTable (autoPtr, ensightPart, istream,(Istream &is),(is)) | |
| autoPtr< ensightPart > | clone () const |
| Construct and return clone. More... | |
| virtual | ~ensightPart () |
| Destructor. More... | |
| label | size () const |
| Number of elements in this part. More... | |
| bool | isCellData () const |
| Represents cell data. More... | |
| bool | isFaceData () const |
| Represents face data. More... | |
| label | number () const |
| Part number. More... | |
| const string & | name () const |
| Part name or description. More... | |
| label | materialId () const |
| Material id. More... | |
| void | name (const string &value) |
| non-const access to part name or description More... | |
| void | materialId (const label value) |
| non-const access to material id More... | |
| const labelListList & | elemLists () const |
| Simple labelList with a name. More... | |
| label | offset () const |
| Offset for element ids. More... | |
| void | renumber (const labelUList &) |
| Renumber elements. More... | |
| bool | writeSummary (Ostream &) const |
| Write summary information about the object. More... | |
| bool | writeData (Ostream &) const |
| Write reconstruction information for the object. More... | |
| void | writeGeometry (ensightGeoFile &, const pointField &) const |
| Helper: write geometry given the pointField. More... | |
| void | writeScalarField (ensightFile &, const List< scalar > &field, const bool perNode=false) const |
| Write scalar field. More... | |
| void | writeVectorField (ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, const bool perNode=false) const |
| Write vector field components. More... | |
| template<class Type > | |
| void | writeField (ensightFile &, const Field< Type > &, const bool perNode=false) const |
| Write generalised field components. More... | |
| void | operator= (const ensightPart &)=delete |
| Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
| static autoPtr< ensightPartFaces > | New (Istream &is) |
| Reconstruct part characteristics on freestore from Istream. More... | |
Static Public Member Functions inherited from ensightPart | |
| static autoPtr< ensightPart > | New (Istream &) |
| Reconstruct part characteristics on freestore from Istream. More... | |
Protected Types | |
| enum | elemType { tria3Elements , quad4Elements , nsidedElements } |
| Addressable ensight element types. More... | |
Protected Member Functions | |
| void | classify (const faceList &) |
| Classify the face shapes, set elemLists. More... | |
| void | writeConnectivity (ensightGeoFile &, const word &key, const faceList &, const labelUList &idList, const labelUList &pointMap) const |
| Helper: write connectivity. More... | |
Protected Member Functions inherited from ensightPart | |
| void | reconstruct (Istream &) |
| Reconstruct part characteristics (eg, element types) from Istream. More... | |
| bool | isFieldDefined (const List< scalar > &) const |
| Check for fully defined fields. More... | |
| void | writeHeader (ensightFile &, bool withDescription=false) const |
| Write the part header. More... | |
| void | writeFieldList (ensightFile &os, const List< scalar > &field, const labelUList &idList) const |
| Write a scalar field for idList. More... | |
Protected Attributes | |
| const faceList & | faces_ |
| Faces referenced. More... | |
| const bool | contiguousPoints_ |
| Can skip local point renumbering when points are contiguous. More... | |
Protected Attributes inherited from ensightPart | |
| label | number_ |
| Part number. More... | |
| string | name_ |
| Part name (or description) More... | |
| labelListList | elemLists_ |
| Simple labelList with a name. More... | |
| label | offset_ |
| Start offset for elemLists_. More... | |
| label | size_ |
| Number of elements in this part. More... | |
| bool | isCellData_ |
| Cell or face data. More... | |
| label | matId_ |
| Material id (numeric) More... | |
| const pointField & | points_ |
| pointField referenced More... | |
Static Protected Attributes | |
| static const List< word > | elemTypes_ |
An implementation of ensightPart to hold volume mesh faces.
Definition at line 48 of file ensightPartFaces.H.
|
protected |
Addressable ensight element types.
| Enumerator | |
|---|---|
| tria3Elements | |
| quad4Elements | |
| nsidedElements | |
Definition at line 70 of file ensightPartFaces.H.
| ensightPartFaces | ( | label | partNumber, |
| const string & | partDescription | ||
| ) |
Construct empty part with number and description.
Definition at line 120 of file ensightPartFaces.C.
References ensightPart::isCellData_, ensightPart::offset_, and ensightPart::size_.
Referenced by ensightPartFaces::New().

| ensightPartFaces | ( | label | partNumber, |
| const string & | partDescription, | ||
| const pointField & | points, | ||
| const faceList & | faces, | ||
| const bool | contiguousPoints = false |
||
| ) |
Construct part with number, description, points and faces.
Can skip local point renumbering when points are contiguous
Definition at line 136 of file ensightPartFaces.C.
References ensightPartFaces::classify(), ensightPart::isCellData_, ensightPart::offset_, and ensightPart::size_.

| ensightPartFaces | ( | label | partNumber, |
| const polyMesh & | mesh, | ||
| const polyPatch & | patch | ||
| ) |
Construct from polyMesh and polyPatch.
Definition at line 158 of file ensightPartFaces.C.
References ensightPartFaces::classify(), ensightPart::isCellData_, ensightPart::offset_, and polyPatch::start().

| ensightPartFaces | ( | const ensightPartFaces & | part | ) |
Copy constructor.
Definition at line 177 of file ensightPartFaces.C.
| ensightPartFaces | ( | Istream & | is | ) |
Reconstruct part characteristics (eg, element types) from Istream.
A part reconstructed in this manner can be used when writing fields, but cannot be used to write a new geometry
Definition at line 185 of file ensightPartFaces.C.
References ensightPart::isCellData_, and ensightPart::reconstruct().

|
virtual |
Destructor.
Definition at line 198 of file ensightPartFaces.C.
|
protected |
Classify the face shapes, set elemLists.
Definition at line 52 of file ensightPartFaces.C.
References ensightPartFaces::elementTypes(), ensightPart::elemLists_, f(), forAll, ensightPartFaces::nsidedElements, ensightPartFaces::quad4Elements, List< T >::setSize(), ensightPart::size(), List< T >::size(), ensightPart::size_, List< T >::transfer(), and ensightPartFaces::tria3Elements.
Referenced by ensightPartFaces::ensightPartFaces().


|
protected |
Helper: write connectivity.
Definition at line 253 of file ensightPartFaces.C.
References f(), forAll, ensightFile::newline(), UList< T >::size(), List< T >::size(), ensightFile::write(), and ensightGeoFile::writeKeyword().

| TypeName | ( | "ensightFaces" | ) |
Runtime type information.
|
inlinestatic |
Reconstruct part characteristics on freestore from Istream.
Definition at line 147 of file ensightPartFaces.H.
References ensightPartFaces::ensightPartFaces().

|
virtual |
Write geometry.
Reimplemented from ensightPart.
Definition at line 316 of file ensightPartFaces.C.
References ensightPart::writeGeometry().

Static listing of the element types.
Reimplemented from ensightPart.
Definition at line 163 of file ensightPartFaces.H.
References ensightPartFaces::elemTypes_.
Referenced by ensightPartFaces::classify().

|
delete |
Disallow default bitwise assignment.
|
staticprotected |
Definition at line 80 of file ensightPartFaces.H.
Referenced by ensightPartFaces::elementTypes().
|
protected |
Faces referenced.
Definition at line 86 of file ensightPartFaces.H.
|
protected |
Can skip local point renumbering when points are contiguous.
Definition at line 89 of file ensightPartFaces.H.