Encapsulation of volume meshes for writing in ensight format. More...
Classes | |
class | options |
Configuration options for the ensightMesh. More... | |
Public Member Functions | |
ensightMesh (const fvMesh &mesh, const options &opts) | |
Construct from components. More... | |
ensightMesh (const fvMesh &mesh) | |
Construct from fvMesh with all default options, binary output. More... | |
ensightMesh (const fvMesh &mesh, const IOstream::streamFormat format) | |
Construct from fvMesh with all default options and specified format. More... | |
~ensightMesh () | |
Destructor. More... | |
const fvMesh & | mesh () const |
Reference to the underlying fvMesh. More... | |
const ensightMesh::options & | option () const |
Reference to the writer/mesh options. More... | |
IOstream::streamFormat | format () const |
Ascii/Binary file output. More... | |
bool | useInternalMesh () const |
Using internal? More... | |
bool | useBoundaryMesh () const |
Using boundary? More... | |
const ensightCells & | meshCells () const |
The volume cells (internalMesh) More... | |
const Map< word > & | patches () const |
The list of patches to be output. More... | |
const HashTable< ensightFaces > & | boundaryPatchFaces () const |
Face elements per selected patch. More... | |
const HashTable< ensightFaces > & | faceZoneFaces () const |
Face elements per selected faceZone. More... | |
const globalIndex & | globalPoints () const |
Global numbering for merged points. More... | |
const labelList & | pointToGlobal () const |
From mesh point to global merged point. More... | |
const labelList & | uniquePointMap () const |
Local points that are unique. More... | |
bool | needsUpdate () const |
Does the content need an update? More... | |
bool | expire () |
Mark as needing an update. More... | |
void | correct () |
Update for new mesh. More... | |
void | write (autoPtr< ensightGeoFile > &os) const |
Write to file. More... | |
void | write (ensightGeoFile &os) const |
Write to file. More... | |
Encapsulation of volume meshes for writing in ensight format.
Definition at line 68 of file ensightMesh.H.
ensightMesh | ( | const fvMesh & | mesh, |
const options & | opts | ||
) |
Construct from components.
Definition at line 57 of file ensightMesh.C.
References correct().
|
explicit |
Construct from fvMesh with all default options, binary output.
Definition at line 73 of file ensightMesh.C.
ensightMesh | ( | const fvMesh & | mesh, |
const IOstream::streamFormat | format | ||
) |
Construct from fvMesh with all default options and specified format.
Definition at line 80 of file ensightMesh.C.
References correct().
~ensightMesh | ( | ) |
Destructor.
Definition at line 98 of file ensightMesh.C.
References Foam::deleteDemandDrivenData().
|
inline |
Reference to the underlying fvMesh.
Definition at line 30 of file ensightMeshI.H.
Referenced by Foam::ensightOutput::Detail::writePointField(), and Foam::ensightOutput::Detail::writeVolField().
|
inline |
Reference to the writer/mesh options.
Definition at line 36 of file ensightMeshI.H.
|
inline |
Ascii/Binary file output.
Definition at line 42 of file ensightMeshI.H.
|
inline |
Using internal?
Definition at line 48 of file ensightMeshI.H.
Referenced by Foam::ensightOutput::Detail::writePointField(), and Foam::ensightOutput::Detail::writeVolField().
|
inline |
Using boundary?
Definition at line 54 of file ensightMeshI.H.
|
inline |
The volume cells (internalMesh)
Definition at line 60 of file ensightMeshI.H.
Referenced by Foam::ensightOutput::Detail::writeVolField().
|
inline |
The list of patches to be output.
Definition at line 66 of file ensightMeshI.H.
Referenced by Foam::ensightOutput::Detail::writePointField(), and Foam::ensightOutput::Detail::writeVolField().
|
inline |
Face elements per selected patch.
Definition at line 73 of file ensightMeshI.H.
Referenced by Foam::ensightOutput::Detail::writePointField(), and Foam::ensightOutput::Detail::writeVolField().
|
inline |
Face elements per selected faceZone.
To be output in sorted order.
Definition at line 80 of file ensightMeshI.H.
Referenced by Foam::ensightOutput::Detail::writePointField(), and Foam::ensightOutput::Detail::writeVolField().
|
inline |
Global numbering for merged points.
Definition at line 350 of file ensightMesh.H.
|
inline |
From mesh point to global merged point.
Definition at line 356 of file ensightMesh.H.
|
inline |
Local points that are unique.
Definition at line 362 of file ensightMesh.H.
Referenced by Foam::ensightOutput::Detail::writePointField().
bool needsUpdate | ( | ) | const |
Does the content need an update?
Definition at line 106 of file ensightMesh.C.
bool expire | ( | ) |
Mark as needing an update.
May also free up unneeded data. Return false if already marked as expired.
Definition at line 112 of file ensightMesh.C.
References clear().
void correct | ( | ) |
Update for new mesh.
Definition at line 127 of file ensightMesh.C.
References polyPatch::boundaryMesh(), ensightFaces::classify(), clear(), ensightFaces::clear(), Foam::findStrings(), faceZone::flipMap(), Foam::identity(), ensightFaces::index(), p, UPstream::parRun(), patchId(), patchIds, patchNames(), ensightFaces::reduce(), List< T >::resize(), ensightFaces::total(), and zoneID.
|
inline |
Write to file.
Definition at line 86 of file ensightMeshI.H.
References autoPtr< T >::ref(), and Foam::vtk::write().
void write | ( | ensightGeoFile & | os | ) | const |
Write to file.
Definition at line 275 of file ensightMesh.C.
References polyPatch::boundaryMesh(), f(), ensightFaces::faceIds(), ensightFaces::flipMap(), forAll, ensightFaces::index(), Foam::inplaceRenumber(), PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPointMap(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), nPoints, and patchId().