Data Structures | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
ensightMesh Class Reference
Collaboration diagram for ensightMesh:
Collaboration graph
[legend]

Data Structures

class  nFacePrimitives
 

Public Member Functions

 ensightMesh (const fvMesh &mesh, const bool noPatches, const bool patches, const wordReList &patchPatterns, const bool faceZones, const wordReList &faceZonePatterns, const bool binary)
 Construct from fvMesh. More...
 
 ~ensightMesh ()
 Destructor. More...
 
const fvMeshmesh () const
 
const cellSetsmeshCellSets () const
 
const List< faceSets > & boundaryFaceSets () const
 
const wordListallPatchNames () const
 
const wordHashSetpatchNames () const
 
const HashTable< nFacePrimitives > & nPatchPrims () const
 
const List< faceSets > & faceZoneFaceSets () const
 
const wordHashSetfaceZoneNames () const
 
const HashTable< nFacePrimitives > & nFaceZonePrims () const
 
label patchPartOffset () const
 The ensight part id for the first patch. More...
 
const globalIndexglobalPoints () const
 Global numbering for merged points. More...
 
const labelListpointToGlobal () const
 From mesh point to global merged point. More...
 
const labelListuniquePointMap () const
 Local points that are unique. More...
 
void correct ()
 Update for new mesh. More...
 
bool faceToBeIncluded (const label faceI) const
 When exporting faceZones, check if a given face has to be included. More...
 
void write (const fileName &postProcPath, const word &prepend, const label timeIndex, const bool meshMoving, Ostream &ensightCaseFile) const
 

Static Public Member Functions

static void barrier ()
 Helper to cause barrier. Necessary on Quadrics. More...
 

Private Member Functions

 ensightMesh (const ensightMesh &)
 Disallow default bitwise copy construct. More...
 
void operator= (const ensightMesh &)
 Disallow default bitwise assignment. More...
 
void writePoints (const scalarField &pointsComponent, ensightStream &ensightGeometryFile) const
 
cellShapeList map (const cellShapeList &cellShapes, const labelList &prims, const labelList &pointToGlobal) const
 
cellShapeList map (const cellShapeList &cellShapes, const labelList &hexes, const labelList &wedges, const labelList &pointToGlobal) const
 
void writePrims (const cellShapeList &cellShapes, ensightStream &ensightGeometryFile) const
 
void writePolysNFaces (const labelList &polys, const cellList &cellFaces, ensightStream &ensightGeometryFile) const
 
void writePolysNPointsPerFace (const labelList &polys, const cellList &cellFaces, const faceList &faces, ensightStream &ensightGeometryFile) const
 
void writePolysPoints (const labelList &polys, const cellList &cellFaces, const faceList &faces, const labelList &faceOwner, ensightStream &ensightGeometryFile) const
 
void writeAllPolys (const labelList &pointToGlobal, ensightStream &ensightGeometryFile) const
 
void writeAllPrims (const char *key, const label nPrims, const cellShapeList &cellShapes, ensightStream &ensightGeometryFile) const
 
void writeFacePrims (const faceList &patchFaces, ensightStream &ensightGeometryFile) const
 
void writeAllFacePrims (const char *key, const labelList &prims, const label nPrims, const faceList &patchFaces, ensightStream &ensightGeometryFile) const
 
void writeNSidedNPointsPerFace (const faceList &patchFaces, ensightStream &ensightGeometryFile) const
 
void writeNSidedPoints (const faceList &patchFaces, ensightStream &ensightGeometryFile) const
 
void writeAllNSided (const labelList &prims, const label nPrims, const faceList &patchFaces, ensightStream &ensightGeometryFile) const
 
void writeAllPoints (const label ensightPartI, const word &ensightPartName, const pointField &uniquePoints, const label nPoints, ensightStream &ensightGeometryFile) const
 

Private Attributes

const fvMeshmesh_
 Reference to the OpenFOAM mesh. More...
 
const bool noPatches_
 Suppress patches. More...
 
const bool patches_
 Output selected patches only. More...
 
const wordReList patchPatterns_
 
const bool faceZones_
 Output selected faceZones. More...
 
const wordReList faceZonePatterns_
 
const bool binary_
 Set binary file output. More...
 
label patchPartOffset_
 The ensight part id for the first patch. More...
 
cellSets meshCellSets_
 
List< faceSetsboundaryFaceSets_
 
wordList allPatchNames_
 
wordHashSet patchNames_
 
HashTable< nFacePrimitivesnPatchPrims_
 
List< faceSetsfaceZoneFaceSets_
 
wordHashSet faceZoneNames_
 
HashTable< nFacePrimitivesnFaceZonePrims_
 
PackedBoolList boundaryFaceToBeIncluded_
 Per boundary face whether to include or not. More...
 
autoPtr< globalIndexglobalPointsPtr_
 Global numbering for merged points. More...
 
labelList pointToGlobal_
 From mesh point to global merged point. More...
 
labelList uniquePointMap_
 Local points that are unique. More...
 

Detailed Description

Source files

Definition at line 62 of file ensightMesh.H.

Constructor & Destructor Documentation

◆ ensightMesh() [1/2]

ensightMesh ( const ensightMesh )
private

Disallow default bitwise copy construct.

◆ ensightMesh() [2/2]

ensightMesh ( const fvMesh mesh,
const bool  noPatches,
const bool  patches,
const wordReList patchPatterns,
const bool  faceZones,
const wordReList faceZonePatterns,
const bool  binary 
)

Construct from fvMesh.

◆ ~ensightMesh()

Destructor.

Member Function Documentation

◆ operator=()

void operator= ( const ensightMesh )
private

Disallow default bitwise assignment.

◆ writePoints()

void writePoints ( const scalarField pointsComponent,
ensightStream ensightGeometryFile 
) const
private

◆ map() [1/2]

cellShapeList map ( const cellShapeList cellShapes,
const labelList prims,
const labelList pointToGlobal 
) const
private

◆ map() [2/2]

cellShapeList map ( const cellShapeList cellShapes,
const labelList hexes,
const labelList wedges,
const labelList pointToGlobal 
) const
private

◆ writePrims()

void writePrims ( const cellShapeList cellShapes,
ensightStream ensightGeometryFile 
) const
private

◆ writePolysNFaces()

void writePolysNFaces ( const labelList polys,
const cellList cellFaces,
ensightStream ensightGeometryFile 
) const
private

◆ writePolysNPointsPerFace()

void writePolysNPointsPerFace ( const labelList polys,
const cellList cellFaces,
const faceList faces,
ensightStream ensightGeometryFile 
) const
private

◆ writePolysPoints()

void writePolysPoints ( const labelList polys,
const cellList cellFaces,
const faceList faces,
const labelList faceOwner,
ensightStream ensightGeometryFile 
) const
private

◆ writeAllPolys()

void writeAllPolys ( const labelList pointToGlobal,
ensightStream ensightGeometryFile 
) const
private

◆ writeAllPrims()

void writeAllPrims ( const char *  key,
const label  nPrims,
const cellShapeList cellShapes,
ensightStream ensightGeometryFile 
) const
private

◆ writeFacePrims()

void writeFacePrims ( const faceList patchFaces,
ensightStream ensightGeometryFile 
) const
private

◆ writeAllFacePrims()

void writeAllFacePrims ( const char *  key,
const labelList prims,
const label  nPrims,
const faceList patchFaces,
ensightStream ensightGeometryFile 
) const
private

◆ writeNSidedNPointsPerFace()

void writeNSidedNPointsPerFace ( const faceList patchFaces,
ensightStream ensightGeometryFile 
) const
private

◆ writeNSidedPoints()

void writeNSidedPoints ( const faceList patchFaces,
ensightStream ensightGeometryFile 
) const
private

◆ writeAllNSided()

void writeAllNSided ( const labelList prims,
const label  nPrims,
const faceList patchFaces,
ensightStream ensightGeometryFile 
) const
private

◆ writeAllPoints()

void writeAllPoints ( const label  ensightPartI,
const word ensightPartName,
const pointField uniquePoints,
const label  nPoints,
ensightStream ensightGeometryFile 
) const
private

◆ mesh()

const fvMesh& mesh ( ) const
inline

Definition at line 281 of file ensightMesh.H.

References ensightMesh::mesh_.

◆ meshCellSets()

const cellSets& meshCellSets ( ) const
inline

Definition at line 286 of file ensightMesh.H.

References ensightMesh::meshCellSets_.

◆ boundaryFaceSets()

const List<faceSets>& boundaryFaceSets ( ) const
inline

Definition at line 291 of file ensightMesh.H.

References ensightMesh::boundaryFaceSets_.

◆ allPatchNames()

const wordList& allPatchNames ( ) const
inline

Definition at line 296 of file ensightMesh.H.

References ensightMesh::allPatchNames_.

◆ patchNames()

const wordHashSet& patchNames ( ) const
inline

Definition at line 301 of file ensightMesh.H.

References ensightMesh::patchNames_.

◆ nPatchPrims()

const HashTable<nFacePrimitives>& nPatchPrims ( ) const
inline

Definition at line 306 of file ensightMesh.H.

References ensightMesh::nPatchPrims_.

◆ faceZoneFaceSets()

const List<faceSets>& faceZoneFaceSets ( ) const
inline

Definition at line 311 of file ensightMesh.H.

References ensightMesh::faceZoneFaceSets_.

◆ faceZoneNames()

const wordHashSet& faceZoneNames ( ) const
inline

Definition at line 316 of file ensightMesh.H.

References ensightMesh::faceZoneNames_.

◆ nFaceZonePrims()

const HashTable<nFacePrimitives>& nFaceZonePrims ( ) const
inline

Definition at line 321 of file ensightMesh.H.

References ensightMesh::nFaceZonePrims_.

◆ patchPartOffset()

label patchPartOffset ( ) const
inline

The ensight part id for the first patch.

Definition at line 327 of file ensightMesh.H.

References ensightMesh::patchPartOffset_.

◆ globalPoints()

const globalIndex& globalPoints ( ) const
inline

Global numbering for merged points.

Definition at line 336 of file ensightMesh.H.

References ensightMesh::globalPointsPtr_.

◆ pointToGlobal()

const labelList& pointToGlobal ( ) const
inline

From mesh point to global merged point.

Definition at line 342 of file ensightMesh.H.

References ensightMesh::pointToGlobal_.

◆ uniquePointMap()

const labelList& uniquePointMap ( ) const
inline

Local points that are unique.

Definition at line 348 of file ensightMesh.H.

References ensightMesh::uniquePointMap_.

◆ correct()

void correct ( )

Update for new mesh.

◆ faceToBeIncluded()

bool faceToBeIncluded ( const label  faceI) const

When exporting faceZones, check if a given face has to be included.

or not (i.e. faces on processor boundaries)

◆ barrier()

static void barrier ( )
static

Helper to cause barrier. Necessary on Quadrics.

◆ write()

void write ( const fileName postProcPath,
const word prepend,
const label  timeIndex,
const bool  meshMoving,
Ostream ensightCaseFile 
) const

Field Documentation

◆ mesh_

const fvMesh& mesh_
private

Reference to the OpenFOAM mesh.

Definition at line 86 of file ensightMesh.H.

Referenced by ensightMesh::mesh().

◆ noPatches_

const bool noPatches_
private

Suppress patches.

Definition at line 89 of file ensightMesh.H.

◆ patches_

const bool patches_
private

Output selected patches only.

Definition at line 92 of file ensightMesh.H.

◆ patchPatterns_

const wordReList patchPatterns_
private

Definition at line 93 of file ensightMesh.H.

◆ faceZones_

const bool faceZones_
private

Output selected faceZones.

Definition at line 96 of file ensightMesh.H.

◆ faceZonePatterns_

const wordReList faceZonePatterns_
private

Definition at line 97 of file ensightMesh.H.

◆ binary_

const bool binary_
private

Set binary file output.

Definition at line 100 of file ensightMesh.H.

◆ patchPartOffset_

label patchPartOffset_
private

The ensight part id for the first patch.

Definition at line 103 of file ensightMesh.H.

Referenced by ensightMesh::patchPartOffset().

◆ meshCellSets_

cellSets meshCellSets_
private

Definition at line 105 of file ensightMesh.H.

Referenced by ensightMesh::meshCellSets().

◆ boundaryFaceSets_

List<faceSets> boundaryFaceSets_
private

Definition at line 107 of file ensightMesh.H.

Referenced by ensightMesh::boundaryFaceSets().

◆ allPatchNames_

wordList allPatchNames_
private

Definition at line 109 of file ensightMesh.H.

Referenced by ensightMesh::allPatchNames().

◆ patchNames_

wordHashSet patchNames_
private

Definition at line 111 of file ensightMesh.H.

Referenced by ensightMesh::patchNames().

◆ nPatchPrims_

HashTable<nFacePrimitives> nPatchPrims_
private

Definition at line 113 of file ensightMesh.H.

Referenced by ensightMesh::nPatchPrims().

◆ faceZoneFaceSets_

List<faceSets> faceZoneFaceSets_
private

Definition at line 116 of file ensightMesh.H.

Referenced by ensightMesh::faceZoneFaceSets().

◆ faceZoneNames_

wordHashSet faceZoneNames_
private

Definition at line 118 of file ensightMesh.H.

Referenced by ensightMesh::faceZoneNames().

◆ nFaceZonePrims_

HashTable<nFacePrimitives> nFaceZonePrims_
private

Definition at line 120 of file ensightMesh.H.

Referenced by ensightMesh::nFaceZonePrims().

◆ boundaryFaceToBeIncluded_

PackedBoolList boundaryFaceToBeIncluded_
private

Per boundary face whether to include or not.

Definition at line 123 of file ensightMesh.H.

◆ globalPointsPtr_

autoPtr<globalIndex> globalPointsPtr_
private

Global numbering for merged points.

Definition at line 129 of file ensightMesh.H.

Referenced by ensightMesh::globalPoints().

◆ pointToGlobal_

labelList pointToGlobal_
private

From mesh point to global merged point.

Definition at line 132 of file ensightMesh.H.

Referenced by ensightMesh::pointToGlobal().

◆ uniquePointMap_

labelList uniquePointMap_
private

Local points that are unique.

Definition at line 135 of file ensightMesh.H.

Referenced by ensightMesh::uniquePointMap().


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