Public Member Functions | List of all members
ensightOutputSurface Class Reference

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

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

Public Member Functions

 ensightOutputSurface (const pointField &points, const faceList &faces, const string &description="surface")
 
virtual ~ensightOutputSurface ()=default
 
void write (ensightGeoFile &os) const
 
template<class Type >
void writeData (ensightFile &os, const Field< Type > &fld, const bool isPointData=false) const
 
template<class Type >
void writeFaceData (ensightFile &os, const Field< Type > &fld) const
 
template<class Type >
void writePointData (ensightFile &os, const Field< Type > &fld) const
 
virtual void write (ensightGeoFile &, const polyMesh &, bool) const
 
- Public Member Functions inherited from ensightFaces
 TypeName ("ensightFaces")
 
 ensightFaces ()
 
 ensightFaces (const string &description)
 
virtual ~ensightFaces ()=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 labelListfaceIds () const noexcept
 
const labelUList faceIds (const elemType etype) const
 
const boolListflipMap () const
 
bool usesFlipMap () const
 
const labelListfaceOrder () const noexcept
 
const labelUList faceOrder (const elemType etype) const
 
void classify (const UList< face > &faces)
 
void classify (const UList< face > &faces, const labelRange &range)
 
void classify (const UList< face > &faces, const labelUList &addr, const boolList &flipMap=boolList(), const bitSet &exclude=bitSet())
 
void clearOut ()
 
void clear ()
 
void reduce ()
 
void sort ()
 
void incrFaceIds (const label off)
 
void decrFaceIds (const label off)
 
label uniqueMeshPoints (const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const
 
virtual void writeDict (Ostream &os, const bool full=false) 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
 

Additional Inherited Members

- Public Types inherited from ensightFaces
enum  elemType { TRIA3 = 0, QUAD4, NSIDED }
 
- Static Public Member Functions inherited from ensightFaces
static const char * key (const elemType etype)
 
- Static Public Attributes inherited from ensightFaces
static constexpr int nTypes = 3
 
static const char * elemNames [nTypes]
 
- 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

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.

Note
The primary use is for the Foam::surfaceWriters::ensightWriter but can be used independently as well.
Source files

Definition at line 54 of file ensightOutputSurface.H.

Constructor & Destructor Documentation

◆ ensightOutputSurface()

ensightOutputSurface ( const pointField points,
const faceList faces,
const string description = "surface" 
)

Definition at line 27 of file ensightOutputSurface.C.

◆ ~ensightOutputSurface()

virtual ~ensightOutputSurface ( )
virtualdefault

Member Function Documentation

◆ write() [1/2]

void write ( ensightGeoFile os) const

Definition at line 44 of file ensightOutputSurface.C.

References ensightPart::index(), ensightPart::name(), os(), ensightFaces::total(), Foam::ensightOutput::Detail::writeCoordinates(), and Foam::ensightOutput::writeFaceConnectivity().

Referenced by ensightWriter::writeCollated(), and ensightWriter::writeUncollated().

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

◆ writeData()

void writeData ( ensightFile os,
const Field< Type > &  fld,
const bool  isPointData = false 
) const

Definition at line 28 of file ensightOutputSurfaceTemplates.C.

References fld, and os().

Referenced by ensightWriter::writeCollated(), and ensightWriter::writeUncollated().

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

◆ writeFaceData()

void writeFaceData ( ensightFile os,
const Field< Type > &  fld 
) const

Definition at line 47 of file ensightOutputSurfaceTemplates.C.

References fld, os(), and Foam::ensightOutput::writeField().

Here is the call graph for this function:

◆ writePointData()

void writePointData ( ensightFile os,
const Field< Type > &  fld 
) const

Definition at line 64 of file ensightOutputSurfaceTemplates.C.

References coordinates(), ensightPart::empty(), fld, ensightPart::index(), os(), and Foam::ensightOutput::Detail::writeFieldComponents().

Here is the call graph for this function:

◆ write() [2/2]

virtual void write ( ensightGeoFile ,
const polyMesh ,
bool   
) const
inlinevirtual

Reimplemented from ensightFaces.

Definition at line 120 of file ensightOutputSurface.H.


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