ensightPartFaces Class Reference

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

Inheritance diagram for ensightPartFaces:
Collaboration diagram for ensightPartFaces:

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< ensightPartclone () 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 stringname () 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 labelListListelemLists () 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< ensightPartFacesNew (Istream &is)
 Reconstruct part characteristics on freestore from Istream. More...
 
- Static Public Member Functions inherited from ensightPart
static autoPtr< ensightPartNew (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 faceListfaces_
 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 pointFieldpoints_
 pointField referenced More...
 

Static Protected Attributes

static const List< wordelemTypes_
 

Detailed Description

An implementation of ensightPart to hold volume mesh faces.

Source files

Definition at line 48 of file ensightPartFaces.H.

Member Enumeration Documentation

◆ elemType

enum elemType
protected

Addressable ensight element types.

Enumerator
tria3Elements 
quad4Elements 
nsidedElements 

Definition at line 70 of file ensightPartFaces.H.

Constructor & Destructor Documentation

◆ ensightPartFaces() [1/5]

ensightPartFaces ( label  partNumber,
const string partDescription 
)

Construct empty part with number and description.

Definition at line 121 of file ensightPartFaces.C.

Referenced by ensightPartFaces::classify(), ensightPartFaces::ensightPartFaces(), and ensightPartFaces::New().

Here is the caller graph for this function:

◆ ensightPartFaces() [2/5]

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 137 of file ensightPartFaces.C.

References ensightPartFaces::ensightPartFaces().

Here is the call graph for this function:

◆ ensightPartFaces() [3/5]

ensightPartFaces ( label  partNumber,
const polyMesh mesh,
const polyPatch patch 
)

Construct from polyMesh and polyPatch.

Definition at line 159 of file ensightPartFaces.C.

References polyPatch::start().

Here is the call graph for this function:

◆ ensightPartFaces() [4/5]

Copy constructor.

Definition at line 177 of file ensightPartFaces.C.

◆ ensightPartFaces() [5/5]

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

See also
Foam::ensightPart::reconstruct

Definition at line 185 of file ensightPartFaces.C.

References ensightPart::isCellData_, and ensightPart::reconstruct().

Here is the call graph for this function:

◆ ~ensightPartFaces()

~ensightPartFaces ( )
virtual

Member Function Documentation

◆ classify()

void classify ( const faceList faces)
protected

Classify the face shapes, set elemLists.

Definition at line 52 of file ensightPartFaces.C.

References ensightPartFaces::ensightPartFaces(), f(), forAll, List< T >::setSize(), and List< T >::size().

Here is the call graph for this function:

◆ writeConnectivity()

void writeConnectivity ( ensightGeoFile os,
const word key,
const faceList faces,
const labelUList idList,
const labelUList pointMap 
) const
protected

Helper: write connectivity.

Definition at line 254 of file ensightPartFaces.C.

References f(), ensightPartFaces::faces_, forAll, ensightFile::newline(), ensightPart::offset_, List< T >::size(), UList< T >::size(), ensightFile::write(), and ensightGeoFile::writeKeyword().

Here is the call graph for this function:

◆ TypeName()

TypeName ( "ensightFaces"  )

Runtime type information.

◆ New()

static autoPtr<ensightPartFaces> New ( Istream is)
inlinestatic

Reconstruct part characteristics on freestore from Istream.

Definition at line 147 of file ensightPartFaces.H.

References ensightPartFaces::ensightPartFaces(), ensightPartFaces::writeGeometry(), and ensightPartFaces::~ensightPartFaces().

Here is the call graph for this function:

◆ writeGeometry()

void writeGeometry ( ensightGeoFile os) const
virtual

Write geometry.

Reimplemented from ensightPart.

Definition at line 316 of file ensightPartFaces.C.

References ensightPart::points_, and ensightPart::writeGeometry().

Referenced by ensightPartFaces::New().

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

◆ elementTypes()

virtual const List<word>& elementTypes ( ) const
inlinevirtual

Static listing of the element types.

Reimplemented from ensightPart.

Definition at line 163 of file ensightPartFaces.H.

References ensightPartFaces::elemTypes_, and ensightPartFaces::operator=().

Here is the call graph for this function:

◆ operator=()

void operator= ( const ensightPartFaces )
delete

Disallow default bitwise assignment.

Referenced by ensightPartFaces::elementTypes().

Here is the caller graph for this function:

Member Data Documentation

◆ elemTypes_

const Foam::List< Foam::word > elemTypes_
staticprotected

Definition at line 80 of file ensightPartFaces.H.

Referenced by ensightPartFaces::elementTypes().

◆ faces_

const faceList& faces_
protected

Faces referenced.

Definition at line 86 of file ensightPartFaces.H.

Referenced by ensightPartFaces::writeConnectivity(), and ensightPartFaces::~ensightPartFaces().

◆ contiguousPoints_

const bool contiguousPoints_
protected

Can skip local point renumbering when points are contiguous.

Definition at line 89 of file ensightPartFaces.H.

Referenced by ensightPartFaces::~ensightPartFaces().


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