ensightMeshReader Class Reference

Notes. More...

Inheritance diagram for ensightMeshReader:
Collaboration diagram for ensightMeshReader:

Public Member Functions

 TypeName ("ensightMeshReader")
 Runtime type information. More...
 
 ensightMeshReader (const fileName &geomFile, const objectRegistry &registry, const scalar mergeTol=SMALL, const scalar scaleFactor=1.0, const bool setHandedness=true)
 Construct from case name. More...
 
virtual ~ensightMeshReader ()=default
 Destructor. More...
 
const labelListnodeIds () const noexcept
 Original node id (if supplied) or -1. More...
 
const labelListelementIds () const noexcept
 Original element id (if supplied) or -1. More...
 
- Public Member Functions inherited from meshReader
 meshReader (const fileName &, const scalar scaling=1.0)
 Construct from fileName. More...
 
virtual ~meshReader ()=default
 Destructor. More...
 
virtual autoPtr< polyMeshmesh (const objectRegistry &)
 Create and return polyMesh. More...
 
void writeAux (const objectRegistry &) const
 Write auxiliary information. More...
 
void writeMesh (const polyMesh &, IOstreamOption streamOpt=IOstreamOption(IOstreamOption::BINARY)) const
 Write mesh. More...
 

Protected Member Functions

const facerotateFace (const face &f, face &rotatedFace) const
 Rotate face so lowest vertex is first. More...
 
void readVerts (ensightReadFile &is, const label nVerts, const Map< label > &nodeIdToPoints, DynamicList< label > &verts) const
 Read set of vertices. Optional mapping. More...
 
void readIDs (ensightReadFile &is, const bool doRead, const label nShapes, labelList &foamToElem, Map< label > &elemToFoam) const
 Read set of element/node IDs. More...
 
void setHandedness (const cellModel &model, DynamicList< label > &verts, const pointField &points) const
 Swap handedness of hex if needed. More...
 
bool readGoldPart (ensightReadFile &is, const bool read_node_ids, const bool read_elem_ids, pointField &points, labelList &pointToNodeIds, Map< label > &nodeIdToPoints, faceListList &cellFaces, labelList &cellToElemIds, Map< label > &elemIdToCells, faceList &faces, labelList &faceToElemIDs, Map< label > &elemIdToFaces) const
 Read a single part until eof (return true) or until start of next. More...
 
virtual bool readGeometry (const scalar scaleFactor=1.0)
 Read the mesh from the file(s) More...
 

Protected Attributes

labelList nodeIds_
 mesh point to original node_id More...
 
labelList elementIds_
 mesh cell to original element_id More...
 
- Protected Attributes inherited from meshReader
fileName geometryFile_
 Referenced filename. More...
 
scalar scaleFactor_
 Geometry scaling. More...
 
pointField points_
 Points supporting the mesh. More...
 
labelList origCellId_
 Lookup original Cell number for a given cell. More...
 
List< List< cellFaceIdentifier > > boundaryIds_
 Identify boundary faces by cells and their faces. More...
 
wordList patchTypes_
 Boundary patch types. More...
 
wordList patchNames_
 Boundary patch names. More...
 
wordList patchPhysicalTypes_
 Boundary patch physical types. More...
 
labelList patchStarts_
 Polyhedral mesh boundary patch start indices and dimensions. More...
 
labelList patchSizes_
 
label nInternalFaces_
 Number of internal faces for polyMesh. More...
 
faceList meshFaces_
 Global face list for polyMesh. More...
 
faceListList cellFaces_
 List of faces for every cell. More...
 
faceList baffleFaces_
 List of each baffle face. More...
 
labelList cellTableId_
 Cell table id for each cell. More...
 
cellTable cellTable_
 Cell table persistent data saved as a dictionary. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from meshReader
static void warnDuplicates (const word &context, const wordList &)
 Warn about repeated names. More...
 

Detailed Description

Notes.

Source files

Definition at line 54 of file ensightMeshReader.H.

Constructor & Destructor Documentation

◆ ensightMeshReader()

ensightMeshReader ( const fileName geomFile,
const objectRegistry registry,
const scalar  mergeTol = SMALL,
const scalar  scaleFactor = 1.0,
const bool  setHandedness = true 
)

Construct from case name.

◆ ~ensightMeshReader()

virtual ~ensightMeshReader ( )
virtualdefault

Destructor.

Member Function Documentation

◆ rotateFace()

const face& rotateFace ( const face f,
face rotatedFace 
) const
protected

Rotate face so lowest vertex is first.

◆ readVerts()

void readVerts ( ensightReadFile is,
const label  nVerts,
const Map< label > &  nodeIdToPoints,
DynamicList< label > &  verts 
) const
protected

Read set of vertices. Optional mapping.

◆ readIDs()

void readIDs ( ensightReadFile is,
const bool  doRead,
const label  nShapes,
labelList foamToElem,
Map< label > &  elemToFoam 
) const
protected

Read set of element/node IDs.

◆ setHandedness()

void setHandedness ( const cellModel model,
DynamicList< label > &  verts,
const pointField points 
) const
protected

Swap handedness of hex if needed.

◆ readGoldPart()

bool readGoldPart ( ensightReadFile is,
const bool  read_node_ids,
const bool  read_elem_ids,
pointField points,
labelList pointToNodeIds,
Map< label > &  nodeIdToPoints,
faceListList cellFaces,
labelList cellToElemIds,
Map< label > &  elemIdToCells,
faceList faces,
labelList faceToElemIDs,
Map< label > &  elemIdToFaces 
) const
protected

Read a single part until eof (return true) or until start of next.

part (return false)

◆ readGeometry()

virtual bool readGeometry ( const scalar  scaleFactor = 1.0)
protectedvirtual

Read the mesh from the file(s)

Implements meshReader.

◆ TypeName()

TypeName ( "ensightMeshReader"  )

Runtime type information.

◆ nodeIds()

const labelList& nodeIds ( ) const
inlinenoexcept

Original node id (if supplied) or -1.

Definition at line 196 of file ensightMeshReader.H.

References ensightMeshReader::nodeIds_.

◆ elementIds()

const labelList& elementIds ( ) const
inlinenoexcept

Original element id (if supplied) or -1.

Definition at line 204 of file ensightMeshReader.H.

References ensightMeshReader::elementIds_.

Member Data Documentation

◆ nodeIds_

labelList nodeIds_
protected

mesh point to original node_id

Definition at line 78 of file ensightMeshReader.H.

Referenced by ensightMeshReader::nodeIds().

◆ elementIds_

labelList elementIds_
protected

mesh cell to original element_id

Definition at line 83 of file ensightMeshReader.H.

Referenced by ensightMeshReader::elementIds().


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