A collection of several ensightPart elements. More...
Public Member Functions | |
ensightParts (const polyMesh &) | |
Construct from polyMesh. More... | |
ensightParts (const IOobject &) | |
Construct from IOobject. More... | |
~ensightParts () | |
Destructor. More... | |
void | recalculate (const polyMesh &) |
Clear old information and construct anew from polyMesh. More... | |
void | renumber (const labelUList &origCellId, const labelUList &origFaceId) |
Renumber elements. More... | |
label | size () const |
Number of parts. More... | |
void | writeGeometry (ensightGeoFile &) const |
Write the geometry. More... | |
bool | writeSummary (Ostream &) const |
Write summary information about the objects. More... | |
void | writeData (Ostream &) const |
Write the lists. More... | |
void | writeScalarField (ensightFile &, const List< scalar > &field, const bool useFaceData=false, const bool perNode=false) const |
Write (volume) scalar field. More... | |
void | writeVectorField (ensightFile &, const List< scalar > &field0, const List< scalar > &field1, const List< scalar > &field2, const bool useFaceData=false, const bool perNode=false) const |
Write (volume) vector field components. More... | |
template<class Type > | |
void | writeField (ensightFile &, const GeometricField< Type, fvPatchField, volMesh > &) const |
Write generalized volume field components. More... | |
Private Member Functions | |
ensightParts (const ensightParts &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const ensightParts &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
PtrList< ensightPart > | partsList_ |
List of parts. More... | |
Friends | |
ensightGeoFile & | operator<< (ensightGeoFile &, const ensightParts &) |
Write geometry. More... | |
A collection of several ensightPart elements.
Definition at line 52 of file ensightParts.H.
|
private |
Disallow default bitwise copy construct.
ensightParts | ( | const polyMesh & | mesh | ) |
Construct from polyMesh.
Definition at line 30 of file ensightParts.C.
References mesh, and ensightParts::recalculate().
ensightParts | ( | const IOobject & | ioObj | ) |
Construct from IOobject.
Definition at line 38 of file ensightParts.C.
References ensightParts::partsList_.
~ensightParts | ( | ) |
Destructor.
Definition at line 49 of file ensightParts.C.
|
private |
Disallow default bitwise assignment.
void recalculate | ( | const polyMesh & | mesh | ) |
Clear old information and construct anew from polyMesh.
Definition at line 55 of file ensightParts.C.
References polyMesh::boundaryMesh(), polyMesh::cellZones(), forAll, mesh, primitiveMesh::nCells(), PtrList::set(), List::setSize(), List::size(), and PtrList::size().
Referenced by ensightParts::ensightParts().
void renumber | ( | const labelUList & | origCellId, |
const labelUList & | origFaceId | ||
) |
|
inline |
void writeGeometry | ( | ensightGeoFile & | os | ) | const |
Write the geometry.
Definition at line 183 of file ensightParts.C.
References Foam::flush(), forAll, Foam::Info, and Foam::nl.
bool writeSummary | ( | Ostream & | os | ) | const |
Write summary information about the objects.
Definition at line 196 of file ensightParts.C.
References forAll.
void writeData | ( | Ostream & | os | ) | const |
Write the lists.
Definition at line 207 of file ensightParts.C.
References token::BEGIN_LIST, IOstream::check(), token::END_LIST, forAll, and Foam::nl.
void writeScalarField | ( | ensightFile & | os, |
const List< scalar > & | field, | ||
const bool | useFaceData = false , |
||
const bool | perNode = false |
||
) | const |
Write (volume) scalar field.
optionally write data for face parts optionally write data per node
Definition at line 228 of file ensightParts.C.
References forAll.
void writeVectorField | ( | ensightFile & | os, |
const List< scalar > & | field0, | ||
const List< scalar > & | field1, | ||
const List< scalar > & | field2, | ||
const bool | useFaceData = false , |
||
const bool | perNode = false |
||
) | const |
Write (volume) vector field components.
optionally write data for face parts optionally write data per node
Definition at line 251 of file ensightParts.C.
References forAll.
void writeField | ( | ensightFile & | os, |
const GeometricField< Type, fvPatchField, volMesh > & | field | ||
) | const |
Write generalized volume field components.
Definition at line 35 of file ensightPartsTemplates.C.
References GeometricField::boundaryField(), and forAll.
|
friend |
Write geometry.
|
private |
List of parts.
Definition at line 57 of file ensightParts.H.
Referenced by ensightParts::ensightParts(), and ensightParts::size().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.