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...
Public Member Functions | |
ensightOutputSurface (const pointField &points, const faceList &faces, const string &description="surface") | |
Construct from points and faces. Part receives the specified name (default: "surface"). More... | |
virtual | ~ensightOutputSurface ()=default |
Destructor. More... | |
void | write (ensightGeoFile &os) const |
Write processor-local geometry (serial-only) More... | |
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) More... | |
template<class Type > | |
void | writeFaceData (ensightFile &os, const Field< Type > &fld) const |
Write a field of face values (serial-only) More... | |
template<class Type > | |
void | writePointData (ensightFile &os, const Field< Type > &fld) const |
Write a field of point values (serial-only) More... | |
virtual void | write (ensightGeoFile &, const polyMesh &, bool) const |
Cannot write geometry with a mesh reference. More... | |
Public Member Functions inherited from ensightFaces | |
TypeName ("ensightFaces") | |
Declare type-name, virtual type (with debug switch) More... | |
ensightFaces () | |
Default construct, with part index 0. More... | |
ensightFaces (const string &description) | |
Default construct, with description/partName. More... | |
virtual | ~ensightFaces ()=default |
Destructor. More... | |
label | size (const elemType etype) const |
Processor-local size of the specified element type. More... | |
labelRange | range (const elemType etype) const |
Processor-local offset/size of element type. More... | |
label | totalSize () const noexcept |
The global size of all element types. More... | |
label | total () const noexcept |
Same as totalSize. More... | |
label | total (const elemType etype) const |
The global size of the specified element type. More... | |
const FixedList< label, nTypes > & | totals () const |
The global sizes for each element type. More... | |
FixedList< label, nTypes > | sizes () const |
Processor-local sizes per element type. More... | |
const labelList & | faceIds () const noexcept |
Processor-local face ids of all elements. More... | |
const labelUList | faceIds (const elemType etype) const |
Processor-local face ids of the specified element type. More... | |
const boolList & | flipMap () const |
Processor-local flip-map of all elements. More... | |
bool | usesFlipMap () const |
True for non-zero flip-map that spans the addresses. More... | |
const labelList & | faceOrder () const noexcept |
Processor-local face order (where applicable) More... | |
const labelUList | faceOrder (const elemType etype) const |
Processor-local face order of specified element type (where applicable) More... | |
void | classify (const UList< face > &faces) |
Classify the face types and set the element lists. More... | |
void | classify (const UList< face > &faces, const labelRange &range) |
Classify face types (for a sublist) and set element lists. More... | |
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. More... | |
void | clearOut () |
Clear any demand-driven data. More... | |
void | clear () |
Set addressable sizes to zero, free up addressing memory. More... | |
void | reduce () |
Sum element counts across all processes. More... | |
void | sort () |
Inplace sort element lists numerically. More... | |
void | incrFaceIds (const label off) |
Increase face ids by specified offset value. More... | |
void | decrFaceIds (const label off) |
Decrease face ids by specified offset value. More... | |
InfoProxy< ensightFaces > | info () const |
Return info proxy. More... | |
label | uniqueMeshPoints (const polyMesh &mesh, labelList &uniqueMeshPointLabels, bool parallel) const |
Globally unique mesh points. Required when writing point fields. More... | |
virtual void | writeDict (Ostream &os, const bool full=false) const |
Write information about the object as a dictionary, optionally write all element addresses. More... | |
label | size () const noexcept |
Processor-local size of all elements. More... | |
Public Member Functions inherited from ensightPart | |
TypeNameNoDebug ("ensightPart") | |
Declare type-name, virtual type (without debug switch) More... | |
ensightPart () | |
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 noexcept |
The index in a list (0-based) More... | |
label & | index () noexcept |
The index in a list (0-based) More... | |
label | identifier () const noexcept |
OpenFOAM identifier (patch, zone, etc), -1 when not in use. More... | |
label & | identifier () noexcept |
OpenFOAM identifier (patch, zone, etc), -1 when not in use. More... | |
bool | empty () const noexcept |
Processor-local test for any elements. More... | |
label | size () const noexcept |
Processor-local size of all elements. More... | |
const string & | name () const noexcept |
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... | |
label | operator[] (const label i) const |
Processor-local element id from linear-list of addresses. More... | |
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. More... | |
Static Public Attributes inherited from ensightFaces | |
static constexpr int | nTypes = 3 |
Number of 'Face' element types (3) More... | |
static const char * | elemNames [nTypes] |
The ensight 'Face' element type names. More... | |
Protected Member Functions inherited from ensightPart | |
const labelList & | addressing () const noexcept |
Element addressing. More... | |
labelList & | addressing () noexcept |
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... | |
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.
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 27 of file ensightOutputSurface.C.
|
virtualdefault |
Destructor.
void write | ( | ensightGeoFile & | os | ) | const |
Write processor-local geometry (serial-only)
Definition at line 44 of file ensightOutputSurface.C.
References ensightPart::index(), ensightPart::name(), os(), UList< T >::size(), ensightFaces::total(), Foam::ensightOutput::Detail::writeCoordinates(), and Foam::ensightOutput::writeFaceConnectivity().
Referenced by 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)
Definition at line 28 of file ensightOutputSurfaceTemplates.C.
void writeFaceData | ( | ensightFile & | os, |
const Field< Type > & | fld | ||
) | const |
Write a field of face values (serial-only)
Definition at line 47 of file ensightOutputSurfaceTemplates.C.
References fld, os(), and Foam::ensightOutput::writeField().
void writePointData | ( | ensightFile & | os, |
const Field< Type > & | fld | ||
) | const |
Write a field of point values (serial-only)
Definition at line 64 of file ensightOutputSurfaceTemplates.C.
References coordinates(), ensightPart::empty(), fld, ensightPart::index(), os(), and Foam::ensightOutput::Detail::writeFieldComponents().
|
inlinevirtual |
Cannot write geometry with a mesh reference.
Reimplemented from ensightFaces.
Definition at line 142 of file ensightOutputSurface.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.