ensightPartCells Class Reference

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

Inheritance diagram for ensightPartCells:
Collaboration diagram for ensightPartCells:

Public Member Functions

 TypeName ("ensightCells")
 Runtime type information. More...
 
 ensightPartCells (label partNumber, const string &partDescription)
 Construct empty part with number and description. More...
 
 ensightPartCells (label partNumber, const polyMesh &)
 Construct from polyMesh without zones. More...
 
 ensightPartCells (label partNumber, const polyMesh &, const labelUList &)
 Construct from polyMesh and list of (non-zoned) cells. More...
 
 ensightPartCells (label partNumber, const polyMesh &, const cellZone &)
 Construct from polyMesh and cellZone. More...
 
 ensightPartCells (const ensightPartCells &)
 Copy constructor. More...
 
 ensightPartCells (Istream &)
 Reconstruct part characteristics (eg, element types) from Istream. More...
 
virtual ~ensightPartCells ()
 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 ensightPartCells &)=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< ensightPartCellsNew (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 {
  tetra4Elements, pyramid5Elements, penta6Elements, hexa8Elements,
  nfacedElements
}
 Addressable ensight element types. More...
 

Protected Attributes

const polyMeshmesh_
 Mesh referenced. 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 polyMesh *const polyMeshNullPtr_ = nullptr
 
static const List< wordelemTypes_
 

Additional Inherited Members

- 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...
 

Detailed Description

An implementation of ensightPart to hold volume mesh cells.

Source files

Definition at line 49 of file ensightPartCells.H.

Member Enumeration Documentation

◆ elemType

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() [1/6]

ensightPartCells ( label  partNumber,
const string partDescription 
)

Construct empty part with number and description.

Definition at line 181 of file ensightPartCells.C.

Referenced by ensightPartCells::ensightPartCells(), and ensightPartCells::New().

Here is the caller graph for this function:

◆ ensightPartCells() [2/6]

ensightPartCells ( label  partNumber,
const polyMesh mesh 
)

Construct from polyMesh without zones.

Definition at line 192 of file ensightPartCells.C.

References ensightPartCells::ensightPartCells().

Here is the call graph for this function:

◆ ensightPartCells() [3/6]

ensightPartCells ( label  partNumber,
const polyMesh mesh,
const labelUList idList 
)

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

Definition at line 205 of file ensightPartCells.C.

References ensightPartCells::ensightPartCells().

Here is the call graph for this function:

◆ ensightPartCells() [4/6]

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

Construct from polyMesh and cellZone.

Definition at line 219 of file ensightPartCells.C.

◆ ensightPartCells() [5/6]

Copy constructor.

Definition at line 232 of file ensightPartCells.C.

◆ ensightPartCells() [6/6]

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 239 of file ensightPartCells.C.

References ensightPart::reconstruct().

Here is the call graph for this function:

◆ ~ensightPartCells()

Member Function Documentation

◆ TypeName()

TypeName ( "ensightCells"  )

Runtime type information.

◆ New()

static autoPtr<ensightPartCells> New ( Istream is)
inlinestatic

Reconstruct part characteristics on freestore from Istream.

Definition at line 143 of file ensightPartCells.H.

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

Here is the call graph for this function:

◆ writeGeometry()

void writeGeometry ( ensightGeoFile os) const
virtual

Write geometry.

Reimplemented from ensightPart.

Definition at line 404 of file ensightPartCells.C.

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

Referenced by ensightPartCells::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 159 of file ensightPartCells.H.

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

Here is the call graph for this function:

◆ operator=()

void operator= ( const ensightPartCells )
delete

Disallow default bitwise assignment.

Referenced by ensightPartCells::elementTypes().

Here is the caller graph for this function:

Member Data Documentation

◆ polyMeshNullPtr_

const Foam::polyMesh *const polyMeshNullPtr_ = nullptr
staticprotected

Definition at line 93 of file ensightPartCells.H.

◆ elemTypes_

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

Definition at line 95 of file ensightPartCells.H.

Referenced by ensightPartCells::elementTypes().

◆ mesh_

const polyMesh& mesh_
protected

Mesh referenced.

Definition at line 101 of file ensightPartCells.H.

Referenced by ensightPartCells::~ensightPartCells().


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