Notes. More...
Public Member Functions | |
TypeName ("ensightMeshReader") | |
Runtime type information. More... | |
ensightMeshReader (const fileName &geomFile, const objectRegistry ®istry, const scalar mergeTol=SMALL, const scalar scaleFactor=1.0, const bool setHandedness=true) | |
Construct from case name. More... | |
virtual | ~ensightMeshReader ()=default |
Destructor. More... | |
const labelList & | nodeIds () const noexcept |
Original node id (if supplied) or -1. More... | |
const labelList & | elementIds () 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< polyMesh > | mesh (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 face & | rotateFace (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... | |
ensightMeshReader | ( | const fileName & | geomFile, |
const objectRegistry & | registry, | ||
const scalar | mergeTol = SMALL , |
||
const scalar | scaleFactor = 1.0 , |
||
const bool | setHandedness = true |
||
) |
Construct from case name.
|
virtualdefault |
Destructor.
Rotate face so lowest vertex is first.
|
protected |
Read set of vertices. Optional mapping.
|
protected |
Read set of element/node IDs.
|
protected |
Swap handedness of hex if needed.
|
protected |
Read a single part until eof (return true) or until start of next.
part (return false)
|
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 ensightMeshReader::nodeIds_.
|
inlinenoexcept |
Original element id (if supplied) or -1.
Definition at line 204 of file ensightMeshReader.H.
References ensightMeshReader::elementIds_.
|
protected |
mesh point to original node_id
Definition at line 78 of file ensightMeshReader.H.
Referenced by ensightMeshReader::nodeIds().
|
protected |
mesh cell to original element_id
Definition at line 83 of file ensightMeshReader.H.
Referenced by ensightMeshReader::elementIds().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.