A variant of ensightFaces that holds references to contiguous points/faces with its own encapsulated write methods. The surface is assumed to have been merged prior, thus the output is serial-only. More...
#include <ensightOutputSurface.H>


Public Member Functions | |
| ensightOutputSurface (const ensightOutputSurface &)=delete | |
| No copy construct. | |
| void | operator= (const ensightOutputSurface &)=delete |
| No copy assignment. | |
| ensightOutputSurface (const pointField &points, const faceList &faces, const string &description="surface") | |
| Construct from points and faces. Part receives the specified name (default: "surface"). | |
| virtual | ~ensightOutputSurface ()=default |
| Destructor. | |
| void | write (ensightGeoFile &os) const |
| Write processor-local geometry (serial-only). No beginGeometry() marker. | |
| template<class Type> | |
| void | writeData (ensightFile &os, const Field< Type > &fld, const bool isPointData=false) const |
| Write a field of face or point values (serial-only). | |
| template<class Type> | |
| void | writeFaceData (ensightFile &os, const Field< Type > &fld) const |
| Write a field of face values (serial-only). | |
| template<class Type> | |
| void | writePointData (ensightFile &os, const Field< Type > &fld) const |
| Write a field of point values (serial-only). | |
| virtual void | write (ensightGeoFile &, const polyMesh &, bool) const |
| Cannot write geometry with a mesh reference. No beginGeometry() marker. | |
| Public Member Functions inherited from ensightFaces | |
| TypeName ("ensightFaces") | |
| Declare type-name, virtual type (with debug switch). | |
| ensightFaces () | |
| Default construct, with part index 0. | |
| ensightFaces (const string &description) | |
| Default construct, with description/partName. | |
| virtual | ~ensightFaces ()=default |
| Destructor. | |
| label | size (const elemType etype) const |
| Processor-local size of the specified element type. | |
| labelRange | range (const elemType etype) const |
| Processor-local offset/size of element type. | |
| label | totalSize () const noexcept |
| The global size of all element types. | |
| label | total () const noexcept |
| Same as totalSize. | |
| label | total (const elemType etype) const |
| The global size of the specified element type. | |
| const FixedList< label, nTypes > & | totals () const |
| The global sizes for each element type. | |
| FixedList< label, nTypes > | sizes () const |
| Processor-local sizes per element type. | |
| const labelList & | faceIds () const noexcept |
| Processor-local face ids of all elements. | |
| const labelUList | faceIds (const elemType etype) const |
| Processor-local face ids of the specified element type. | |
| const boolList & | flipMap () const |
| Processor-local flip-map of all elements. | |
| bool | usesFlipMap () const |
| True for non-zero flip-map that spans the addresses. | |
| const labelList & | faceOrder () const noexcept |
| Processor-local face order (where applicable). | |
| const labelUList | faceOrder (const elemType etype) const |
| Processor-local face order of specified element type (where applicable). | |
| void | classify (const UList< face > &faces) |
| Classify the face types and set the element lists. | |
| void | classify (const UList< face > &faces, const labelRange &range) |
| Classify face types (for a sublist) and set element lists. | |
| void | classify (const UList< face > &faces, const labelUList &addr, const boolList &flipMap=boolList(), const bitSet &exclude=bitSet()) |
| Classify the face types and set the element lists. | |
| void | clearOut () |
| Clear any demand-driven data. | |
| void | clear () |
| Set addressable sizes to zero, free up addressing memory. | |
| void | reduce () |
| Sum element counts across all processes. | |
| void | sort () |
| Inplace sort element lists numerically. | |
| void | incrFaceIds (const label off) |
| Increase face ids by specified offset value. | |
| void | decrFaceIds (const label off) |
| Decrease face ids by specified offset value. | |
| InfoProxy< ensightFaces > | info () const noexcept |
| Return info proxy, used to print information to a stream. | |
| label | uniqueMeshPoints (const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const |
| Globally unique mesh points. Required when writing point fields. | |
| virtual void | writeDict (Ostream &os, const bool full=false) const |
| Write information about the object as a dictionary, optionally write all element addresses. | |
| label | size () const noexcept |
| Processor-local size of all elements. | |
| Public Member Functions inherited from ensightPart | |
| TypeNameNoDebug ("ensightPart") | |
| Declare type-name, virtual type (without debug switch). | |
| ensightPart () | |
| Default construct. Index=0, identifier = -1. | |
| ensightPart (const string &description) | |
| Default construct, with description/partName. | |
| virtual | ~ensightPart ()=default |
| Destructor. | |
| label | index () const noexcept |
| The index in a list (0-based). | |
| label & | index () noexcept |
| The index in a list (0-based). | |
| label | identifier () const noexcept |
| OpenFOAM identifier (patch, zone, etc), -1 when not in use. | |
| label & | identifier () noexcept |
| OpenFOAM identifier (patch, zone, etc), -1 when not in use. | |
| bool | empty () const noexcept |
| Processor-local test for any elements. | |
| label | size () const noexcept |
| Processor-local size of all elements. | |
| const string & | name () const noexcept |
| The part name or description. | |
| void | rename (const string &value) |
| Change the part name or description. | |
| void | rename (string &&value) |
| Change the part name or description. | |
| label | operator[] (const label i) const |
| Processor-local element id from linear-list of addresses. | |
Additional Inherited Members | |
| Public Types inherited from ensightFaces | |
| enum | elemType { TRIA3 = 0 , QUAD4 , NSIDED } |
| Supported ensight 'Face' element types. More... | |
| Static Public Member Functions inherited from ensightFaces | |
| static const char * | key (const elemType etype) noexcept |
| The ensight element name for the specified 'Face' type. | |
| Static Public Attributes inherited from ensightFaces | |
| static constexpr int | nTypes = 3 |
| Number of 'Face' element types (3). | |
| static const char * | elemNames [nTypes] |
| The ensight 'Face' element type names. | |
| Protected Member Functions inherited from ensightPart | |
| const labelList & | addressing () const noexcept |
| Element addressing. | |
| labelList & | addressing () noexcept |
| Element addressing. | |
| void | clear () |
| Clear element addressing. | |
| void | incrAddressing (const label off) |
| Increase addressing by specified offset value. | |
| void | decrAddressing (const label off) |
| Decrease addressing by specified offset value. | |
A variant of ensightFaces that holds references to contiguous points/faces with its own encapsulated write methods. The surface is assumed to have been merged prior, thus the output is serial-only.
Definition at line 54 of file ensightOutputSurface.H.
|
delete |
No copy construct.
References ensightOutputSurface().
Referenced by ensightOutputSurface(), and operator=().


| ensightOutputSurface | ( | const pointField & | points, |
| const faceList & | faces, | ||
| const string & | description = "surface" ) |
Construct from points and faces. Part receives the specified name (default: "surface").
Definition at line 26 of file ensightOutputSurface.C.
References ensightFaces::classify(), ensightFaces::ensightFaces(), and points.

|
virtualdefault |
|
delete |
No copy assignment.
References ensightOutputSurface(), and points.

| void write | ( | ensightGeoFile & | os | ) | const |
Write processor-local geometry (serial-only). No beginGeometry() marker.
Definition at line 44 of file ensightOutputSurface.C.
References ensightPart::index(), name, os(), ensightFaces::total(), Foam::ensightOutput::Detail::writeCoordinates(), and Foam::ensightOutput::writeFaceConnectivity().
Referenced by ensightWriter::writeCollated(), and ensightWriter::writeUncollated().


| void writeData | ( | ensightFile & | os, |
| const Field< Type > & | fld, | ||
| const bool | isPointData = false ) const |
Write a field of face or point values (serial-only).
Referenced by ensightWriter::writeCollated(), and ensightWriter::writeUncollated().


| void writeFaceData | ( | ensightFile & | os, |
| const Field< Type > & | fld ) const |
| void writePointData | ( | ensightFile & | os, |
| const Field< Type > & | fld ) const |
|
inlinevirtual |
Cannot write geometry with a mesh reference. No beginGeometry() marker.
Reimplemented from ensightFaces.
Definition at line 144 of file ensightOutputSurface.H.