Notes. More...
#include <ensightMeshReader.H>


Public Member Functions | |
| TypeName ("ensightMeshReader") | |
| Runtime type information. | |
| ensightMeshReader (const fileName &geomFile, const objectRegistry ®istry, const scalar mergeTol=SMALL, const scalar scaleFactor=1.0, const bool setHandedness=true) | |
| Construct from case name. | |
| virtual | ~ensightMeshReader ()=default |
| Destructor. | |
| const labelList & | nodeIds () const noexcept |
| Original node id (if supplied) or -1. | |
| const labelList & | elementIds () 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< polyMesh > | mesh (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 face & | rotateFace (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. | |
| ensightMeshReader | ( | const fileName & | geomFile, |
| const objectRegistry & | registry, | ||
| const scalar | mergeTol = SMALL, | ||
| const scalar | scaleFactor = 1.0, | ||
| const bool | setHandedness = true ) |
|
virtualdefault |
Destructor.
|
protected |
Read set of vertices. Optional mapping.
|
protected |
Read set of element/node IDs.
|
protected |
Swap handedness of hex if needed.
References points.
Referenced by ensightMeshReader().

|
protected |
Read a single part until eof (return true) or until start of next.
part (return false)
References points.
|
protectedvirtual |
Read the mesh from the file(s).
Implements meshReader.
| TypeName | ( | "ensightMeshReader" | ) |
Runtime type information.
|
inlinenoexcept |
Original node id (if supplied) or -1.
Definition at line 196 of file ensightMeshReader.H.
References nodeIds_, and Foam::noexcept.
|
inlinenoexcept |
Original element id (if supplied) or -1.
Definition at line 204 of file ensightMeshReader.H.
References elementIds_, and Foam::noexcept.
|
protected |
mesh point to original node_id
Definition at line 78 of file ensightMeshReader.H.
Referenced by nodeIds().
|
protected |
mesh cell to original element_id
Definition at line 83 of file ensightMeshReader.H.
Referenced by elementIds().