Loading...
Searching...
No Matches
ensightMeshReader Class Reference

Notes. More...

#include <ensightMeshReader.H>

Inheritance diagram for ensightMeshReader:
Collaboration diagram for ensightMeshReader:

Public Member Functions

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

Protected Member Functions

const facerotateFace (const face &f, face &rotatedFace) const
 Rotate face so lowest vertex is first.
void readVerts (ensightReadFile &is, const label nVerts, const Map< label > &nodeIdToPoints, DynamicList< label > &verts) const
 Read set of vertices. Optional mapping.
void readIDs (ensightReadFile &is, const bool doRead, const label nShapes, labelList &foamToElem, Map< label > &elemToFoam) const
 Read set of element/node IDs.
void setHandedness (const cellModel &model, DynamicList< label > &verts, const pointField &points) const
 Swap handedness of hex if needed.
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.
virtual bool readGeometry (const scalar scaleFactor=1.0)
 Read the mesh from the file(s).

Protected Attributes

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

Additional Inherited Members

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

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.

References setHandedness().

Here is the call graph for this function:

◆ ~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.

References f().

Here is the call graph for this function:

◆ 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.

References points.

Referenced by ensightMeshReader().

Here is the caller graph for this function:

◆ 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)

References points.

◆ 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 nodeIds_, and Foam::noexcept.

◆ elementIds()

const labelList & elementIds ( ) const
inlinenoexcept

Original element id (if supplied) or -1.

Definition at line 204 of file ensightMeshReader.H.

References elementIds_, and Foam::noexcept.

Member Data Documentation

◆ nodeIds_

labelList nodeIds_
protected

mesh point to original node_id

Definition at line 78 of file ensightMeshReader.H.

Referenced by nodeIds().

◆ elementIds_

labelList elementIds_
protected

mesh cell to original element_id

Definition at line 83 of file ensightMeshReader.H.

Referenced by elementIds().


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