An implementation of ensightPart to hold volume mesh cells. More...
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< ensightPart > | clone () 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 string & | name () 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 labelListList & | elemLists () 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 &)=delete |
Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
static autoPtr< ensightPartCells > | New (Istream &is) |
Reconstruct part characteristics on freestore from Istream. More... | |
Static Public Member Functions inherited from ensightPart | |
static autoPtr< ensightPart > | New (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 polyMesh & | mesh_ |
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 pointField & | points_ |
pointField referenced More... | |
Static Protected Attributes | |
static const polyMesh *const | polyMeshNullPtr_ = nullptr |
static const List< word > | elemTypes_ |
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... | |
An implementation of ensightPart to hold volume mesh cells.
Definition at line 49 of file ensightPartCells.H.
|
protected |
Addressable ensight element types.
Enumerator | |
---|---|
tetra4Elements | |
pyramid5Elements | |
penta6Elements | |
hexa8Elements | |
nfacedElements |
Definition at line 81 of file ensightPartCells.H.
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().
ensightPartCells | ( | label | partNumber, |
const polyMesh & | mesh | ||
) |
Construct from polyMesh without zones.
Definition at line 192 of file ensightPartCells.C.
References ensightPartCells::ensightPartCells().
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().
ensightPartCells | ( | label | partNumber, |
const polyMesh & | mesh, | ||
const cellZone & | cZone | ||
) |
Construct from polyMesh and cellZone.
Definition at line 219 of file ensightPartCells.C.
ensightPartCells | ( | const ensightPartCells & | part | ) |
Copy constructor.
Definition at line 232 of file ensightPartCells.C.
ensightPartCells | ( | Istream & | is | ) |
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
Definition at line 239 of file ensightPartCells.C.
References ensightPart::reconstruct().
|
virtual |
Destructor.
Definition at line 250 of file ensightPartCells.C.
References primitiveMesh::cells(), primitiveMesh::cellShapes(), ensightPart::elemLists_, f(), faceId(), polyMesh::faceOwner(), polyMesh::faces(), forAll, ensightPart::localPoints::list, ensightPartCells::mesh_, ensightFile::newline(), nPoints, ensightPart::localPoints::nPoints, ensightPart::offset_, ensightPart::points_, List< T >::size(), UList< T >::size(), ensightFile::write(), and ensightGeoFile::writeKeyword().
Referenced by ensightPartCells::New().
TypeName | ( | "ensightCells" | ) |
Runtime type information.
|
inlinestatic |
Reconstruct part characteristics on freestore from Istream.
Definition at line 143 of file ensightPartCells.H.
References ensightPartCells::ensightPartCells(), ensightPartCells::writeGeometry(), and ensightPartCells::~ensightPartCells().
|
virtual |
Write geometry.
Reimplemented from ensightPart.
Definition at line 404 of file ensightPartCells.C.
References ensightPart::points_, and ensightPart::writeGeometry().
Referenced by ensightPartCells::New().
Static listing of the element types.
Reimplemented from ensightPart.
Definition at line 159 of file ensightPartCells.H.
References ensightPartCells::elemTypes_, and ensightPartCells::operator=().
|
delete |
Disallow default bitwise assignment.
Referenced by ensightPartCells::elementTypes().
|
staticprotected |
Definition at line 93 of file ensightPartCells.H.
|
staticprotected |
Definition at line 95 of file ensightPartCells.H.
Referenced by ensightPartCells::elementTypes().
|
protected |
Mesh referenced.
Definition at line 101 of file ensightPartCells.H.
Referenced by ensightPartCells::~ensightPartCells().