FreeFOAM The Cross-Platform CFD Toolkit
ensightPartCells Class Reference

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

#include <conversion/ensightPartCells.H>


Detailed Description

An implementation of ensightPart to hold volume mesh cells.

Source files

Definition at line 50 of file ensightPartCells.H.

+ Inheritance diagram for ensightPartCells:
+ Collaboration diagram for ensightPartCells:

List of all members.

Public Member Functions

 TypeName ("ensightCells")
 Runtime type information.
 ensightPartCells (label partNumber, const string &partDescription)
 Construct empty part with number and description.
 ensightPartCells (label partNumber, const polyMesh &)
 Construct from polyMesh without zones.
 ensightPartCells (label partNumber, const polyMesh &, const labelList &)
 Construct from polyMesh and list of (non-zoned) cells.
 ensightPartCells (label partNumber, const polyMesh &, const cellZone &)
 Construct from polyMesh and cellZone.
 ensightPartCells (const ensightPartCells &)
 Construct as copy.
 ensightPartCells (Istream &)
 Construct from Istream.
virtual ~ensightPartCells ()
 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< ensightPartCellsNew (Istream &is)
 Construct on freestore from Istream.

Protected Types

enum  elemType {
  tetra4Elements, pyramid5Elements, penta6Elements, hexa8Elements,
  nfacedElements
}
 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:
tetra4Elements 
pyramid5Elements 
penta6Elements 
hexa8Elements 
nfacedElements 

Definition at line 81 of file ensightPartCells.H.


Constructor & Destructor Documentation

ensightPartCells ( label  partNumber,
const string partDescription 
)

Construct empty part with number and description.

Definition at line 227 of file ensightPartCells.C.

Referenced by ensightPartCells::New().

ensightPartCells ( label  partNumber,
const polyMesh pMesh 
)

Construct from polyMesh without zones.

Definition at line 237 of file ensightPartCells.C.

ensightPartCells ( label  partNumber,
const polyMesh pMesh,
const labelList idList 
)

Construct from polyMesh and list of (non-zoned) cells.

Definition at line 249 of file ensightPartCells.C.

ensightPartCells ( label  partNumber,
const polyMesh pMesh,
const cellZone cZone 
)

Construct from polyMesh and cellZone.

Definition at line 262 of file ensightPartCells.C.

Construct as copy.

Definition at line 274 of file ensightPartCells.C.

Construct from Istream.

Definition at line 280 of file ensightPartCells.C.

References ensightPart::reconstruct().

~ensightPartCells ( )
virtual

Destructor.

Definition at line 290 of file ensightPartCells.C.


Member Function Documentation

TypeName ( "ensightCells"  )

Runtime type information.

static autoPtr<ensightPartCells> New ( Istream is)
inlinestatic

Construct on freestore from Istream.

Reimplemented from ensightPart.

Definition at line 130 of file ensightPartCells.H.

References ensightPartCells::ensightPartCells().

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

static listing of the element types

Reimplemented from ensightPart.

Definition at line 143 of file ensightPartCells.H.

References ensightPartCells::elemTypes_.


Member Data Documentation

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

Reimplemented from ensightPart.

Definition at line 91 of file ensightPartCells.H.

Referenced by ensightPartCells::elementTypes().


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