Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
ensightPartFaces Class Reference

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

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

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 &)
 Construct as copy. 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...
 
- 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 &)
 Construct as copy. 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 generalized field components. More...
 
void operator= (const ensightPart &)
 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

enum elemType
protected

Addressable ensight element types.

Enumerator
tria3Elements 
quad4Elements 
nsidedElements 

Definition at line 73 of file ensightPartFaces.H.

Constructor & Destructor Documentation

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 ( 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 ( 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:

Construct as copy.

Definition at line 177 of file ensightPartFaces.C.

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 ( )
virtual

Member Function Documentation

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:

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 ( "ensightFaces"  )

Runtime type information.

static autoPtr<ensightPartFaces> New ( Istream is)
inlinestatic

Reconstruct part characteristics on freestore from Istream.

Definition at line 150 of file ensightPartFaces.H.

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

Here is the call graph for this function:

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:

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

Static listing of the element types.

Reimplemented from ensightPart.

Definition at line 166 of file ensightPartFaces.H.

References ensightPartFaces::elemTypes_.

Member Data Documentation

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

Definition at line 83 of file ensightPartFaces.H.

Referenced by ensightPartFaces::elementTypes().

const faceList& faces_
protected

Faces referenced.

Definition at line 89 of file ensightPartFaces.H.

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

const bool contiguousPoints_
protected

Can skip local point renumbering when points are contiguous.

Definition at line 92 of file ensightPartFaces.H.

Referenced by ensightPartFaces::~ensightPartFaces().


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