FreeFOAM The Cross-Platform CFD Toolkit
ensightPartFaces Class Reference

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

#include <conversion/ensightPartFaces.H>


Detailed Description

An implementation of ensightPart to hold volume mesh faces.

Source files

Definition at line 49 of file ensightPartFaces.H.

+ Inheritance diagram for ensightPartFaces:
+ Collaboration diagram for ensightPartFaces:

List of all members.

Public Member Functions

 TypeName ("ensightFaces")
 Runtime type information.
 ensightPartFaces (label partNumber, const string &partDescription)
 Construct empty part with number and description.
 ensightPartFaces (label partNumber, const polyMesh &, const polyPatch &)
 Construct from polyMesh and polyPatch.
 ensightPartFaces (const ensightPartFaces &)
 Construct as copy.
 ensightPartFaces (Istream &)
 Construct from Istream.
virtual ~ensightPartFaces ()
 Destructor.
virtual List< word > const & elementTypes () const
 static listing of the element types
- Public Member Functions inherited from ensightPart
 TypeName ("ensightPart")
 Runtime type information.
 ensightPart ()
 Construct null.
 ensightPart (label partNumber, const string &partDescription)
 Construct empty part with number and description.
 ensightPart (label partNumber, const string &partDescription, const polyMesh &pMesh)
 Construct empty part with number and description.
 ensightPart (const ensightPart &)
 Construct as copy.
 declareRunTimeSelectionTable (autoPtr, ensightPart, istream,(Istream &is),(is))
autoPtr< ensightPartclone () const
 Construct and return clone.
virtual ~ensightPart ()
 Destructor.
label size () const
 number of elements in this part
bool isCellData () const
 represents cell data
bool isFaceData () const
 represents face data
label number () const
 part number
const stringname () const
 part name or description
label materialId () const
 material id
void name (const string &value)
 non-const access
void materialId (const label value)
label offset () const
 offset for element ids
void renumber (labelList const &)
 renumber elements
bool writeSummary (Ostream &) const
 write summary information about the object
bool writeData (Ostream &) const
 write reconstruction information for the object
void writeGeometry (ensightGeoFile &) const
 write geometry
void writeScalarField (ensightFile &, const List< scalar > &field) const
 write scalar field
void writeVectorField (ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2) const
 write vector field components
template<class Type >
void writeField (ensightFile &, const Field< Type > &) const
 write generalized field components
void operator= (const ensightPart &)
 Disallow default bitwise assignment.

Static Public Member Functions

static autoPtr< ensightPartFacesNew (Istream &is)
 Construct on freestore from Istream.

Protected Types

enum  elemType { tria3Elements, quad4Elements, nsidedElements }
 addressable ensight element types More...

Static Protected Attributes

static List< wordelemTypes_

Additional Inherited Members

- Protected Member Functions inherited from ensightPart
void reconstruct (Istream &)
 reconstruct contents from Istream
bool isFieldDefined (const List< scalar > &) const
 check for fully defined fields
void writeHeader (ensightFile &, bool withDescription=false) const
 write the part header
void writeFieldList (ensightFile &os, const List< scalar > &field, const List< label > &idList) const
 write a scalar field for idList
- Protected Attributes inherited from ensightPart
label number_
 part number
string name_
 part name (or description)
labelListList elemLists_
 simple labelList with a name
label offset_
 start offset for elemLists_
label size_
 number of elements in this part
bool isCellData_
 cell or face data
label matId_
 material id (numeric)
const polyMeshmeshPtr_
 mesh reference used

Member Enumeration Documentation

enum elemType
protected

addressable ensight element types

Enumerator:
tria3Elements 
quad4Elements 
nsidedElements 

Definition at line 74 of file ensightPartFaces.H.


Constructor & Destructor Documentation

ensightPartFaces ( label  partNumber,
const string partDescription 
)

Construct empty part with number and description.

Definition at line 53 of file ensightPartFaces.C.

Referenced by ensightPartFaces::New().

ensightPartFaces ( label  partNumber,
const polyMesh pMesh,
const polyPatch pPatch 
)

Construct from polyMesh and polyPatch.

Definition at line 65 of file ensightPartFaces.C.

References f(), polyMesh::faces(), forAll, List< T >::setSize(), List< T >::size(), and polyPatch::start().

Construct as copy.

Definition at line 139 of file ensightPartFaces.C.

Construct from Istream.

Definition at line 145 of file ensightPartFaces.C.

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

~ensightPartFaces ( )
virtual

Destructor.

Definition at line 156 of file ensightPartFaces.C.


Member Function Documentation

TypeName ( "ensightFaces"  )

Runtime type information.

static autoPtr<ensightPartFaces> New ( Istream is)
inlinestatic

Construct on freestore from Istream.

Reimplemented from ensightPart.

Definition at line 110 of file ensightPartFaces.H.

References ensightPartFaces::ensightPartFaces().

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

static listing of the element types

Reimplemented from ensightPart.

Definition at line 123 of file ensightPartFaces.H.

References ensightPartFaces::elemTypes_.


Member Data Documentation

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

Reimplemented from ensightPart.

Definition at line 82 of file ensightPartFaces.H.

Referenced by ensightPartFaces::elementTypes().


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