A messy mesh class which supports the possibility of creating a shapeMesh for regular Star meshes (no arbitrary interfaces or collapsed SAMM cells). If any of these special feateres exist, the mesh is created as polyMesh. More...
Data Structures | |
struct | pointIndex |
Point indexing structure used by sort to keep track of. More... | |
Public Member Functions | |
starMesh (const fileName &prefix, const Time &rt, const scalar scaleFactor) | |
Construct from case name. More... | |
~starMesh () | |
Destructor. More... | |
void | writeMesh () |
Write mesh. More... | |
Private Member Functions | |
starMesh (const starMesh &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const starMesh &) |
Disallow default bitwise assignment. More... | |
void | readPoints (const scalar scaleFactor) |
Read the points file. More... | |
void | readCells () |
Read the cells file. More... | |
void | addRegularCell (const labelList &labels, const label nCreatedCells) |
void | addSAMMcell (const labelList &labels, const label nCreatedCells) |
void | readBoundary () |
Read the boundary file. More... | |
void | fixCollapsedEdges () |
Check and correct collapsed edges on faces. More... | |
void | readCouples () |
Read couples. More... | |
void | createCoupleMatches () |
Create couple matches. More... | |
void | calcPointCells () const |
Calculate pointCells. More... | |
const labelListList & | pointCells () const |
void | markBoundaryFaces () |
Mark boundary faces from the quads. More... | |
void | collectBoundaryFaces () |
Collect boundary faces from the quads. More... | |
bool | starEqualFace (const face &boundaryFace, const face &cellFace) const |
Specialist version of face comparison to deal with. More... | |
void | mergeCoupleFacePoints () |
Merge couple face points. More... | |
void | purgeCellShapes () |
Purge cell shapes. More... | |
void | createPolyCells () |
Make polyhedral cells and global faces if the mesh is polyhedral. More... | |
void | createPolyBoundary () |
Make polyhedral boundary from shape boundary. More... | |
void | createPolyMeshData () |
Make polyhedral mesh data (packing) More... | |
List< polyPatch * > | polyBoundaryPatches (const polyMesh &) |
Add polyhedral boundary. More... | |
void | clearExtraStorage () |
Clear extra storage before creation of the mesh to remove. More... | |
Static Private Member Functions | |
static label | readVtxLabel (IFstream &) |
Read fixed format vertex label. More... | |
static scalar | readVtxCmpt (IFstream &) |
Read fixed format vertex coordinate component. More... | |
static void | readToNl (IFstream &) |
Read to nl. More... | |
Private Attributes | |
fileName | casePrefix_ |
Name of the case. More... | |
const Time & | runTime_ |
Database. More... | |
pointField | points_ |
Points supporting the mesh. More... | |
cellShapeList | cellShapes_ |
Cell shapes. More... | |
faceListList | boundary_ |
Boundary faces. More... | |
wordList | patchTypes_ |
Boundary patch types. More... | |
word | defaultFacesName_ |
Default boundary patch name. More... | |
word | defaultFacesType_ |
Default boundary patch types. More... | |
wordList | patchNames_ |
Boundary patch names. More... | |
wordList | patchPhysicalTypes_ |
Boundary patch physical types. More... | |
labelList | starPointLabelLookup_ |
Point labels (STAR point numbering is not necessarily contiguous) More... | |
labelList | starPointID_ |
STAR point number for a given vertex. More... | |
labelList | starCellID_ |
STAR Cell number for a given cell. More... | |
labelList | starCellLabelLookup_ |
Cell labels (STAR cell numbering is not necessarily contiguous) More... | |
labelList | starCellPermutation_ |
STAR Cell permutation label. More... | |
faceListList | cellFaces_ |
List of faces for every cell. More... | |
labelListList | boundaryCellIDs_ |
Cell ID for every boundary face. Used in two-tier boundary. More... | |
labelListList | boundaryCellFaceIDs_ |
Cell face ID for every boundary face. Used in two-tier boundary. More... | |
faceList | meshFaces_ |
Global face list for polyMesh. More... | |
cellList | cellPolys_ |
Cells as polyhedra for polyMesh. More... | |
label | nInternalFaces_ |
Number of internal faces for polyMesh. More... | |
labelList | polyBoundaryPatchStartIndices_ |
Polyhedral mesh boundary patch start indices. More... | |
labelListList * | pointCellsPtr_ |
Point-cell addressing. Used for topological analysis. More... | |
PtrList< coupledFacePair > | couples_ |
List of face couples. More... | |
bool | isShapeMesh_ |
Can the mesh be treated as a shapeMesh? More... | |
Static Private Attributes | |
static const scalar | smallMergeTol_ |
Error on unity small tolerance. More... | |
static const scalar | cpMergePointTol_ |
Couple match relative point merge tolerance. More... | |
static const cellModel * | unknownPtr_ |
Pointers to cell models. More... | |
static const cellModel * | tetPtr_ |
static const cellModel * | pyrPtr_ |
static const cellModel * | tetWedgePtr_ |
static const cellModel * | prismPtr_ |
static const cellModel * | wedgePtr_ |
static const cellModel * | hexPtr_ |
static const cellModel * | sammTrim1Ptr_ |
static const cellModel * | sammTrim2Ptr_ |
static const cellModel * | sammTrim3Ptr_ |
static const cellModel * | sammTrim4Ptr_ |
static const cellModel * | sammTrim5Ptr_ |
static const cellModel * | sammTrim8Ptr_ |
static const label | regularAddressingTable [6][8] |
Regular addressing data. More... | |
static const label | sammAddressingTable [9][12] |
SAMM addressing data. More... | |
static const label | sammFacePermutationTable [24][8] |
static const label | shapeFaceLookup [19][9] |
A messy mesh class which supports the possibility of creating a shapeMesh for regular Star meshes (no arbitrary interfaces or collapsed SAMM cells). If any of these special feateres exist, the mesh is created as polyMesh.
Definition at line 67 of file starMesh.H.
Construct from case name.
~starMesh | ( | ) |
Destructor.
|
private |
Disallow default bitwise assignment.
|
staticprivate |
Read fixed format vertex coordinate component.
|
staticprivate |
Read to nl.
|
private |
Read the points file.
|
private |
Read the cells file.
|
private |
Read the boundary file.
|
private |
Check and correct collapsed edges on faces.
Note. If a collapsed edge is found, the mesh is no longer shapeMesh
|
private |
Read couples.
|
private |
Create couple matches.
|
private |
Calculate pointCells.
|
private |
|
private |
Mark boundary faces from the quads.
|
private |
Collect boundary faces from the quads.
Specialist version of face comparison to deal with.
PROSTAR boundary format idiosyncracies
|
private |
Merge couple face points.
|
private |
Purge cell shapes.
|
private |
Make polyhedral cells and global faces if the mesh is polyhedral.
|
private |
Make polyhedral boundary from shape boundary.
(adds more faces to the face list)
|
private |
Make polyhedral mesh data (packing)
|
private |
Clear extra storage before creation of the mesh to remove.
a memory peak
void writeMesh | ( | ) |
Write mesh.
|
private |
Name of the case.
Definition at line 72 of file starMesh.H.
|
private |
Database.
Definition at line 75 of file starMesh.H.
|
private |
Points supporting the mesh.
Definition at line 78 of file starMesh.H.
|
private |
Cell shapes.
Definition at line 81 of file starMesh.H.
|
private |
Boundary faces.
Definition at line 84 of file starMesh.H.
|
private |
Boundary patch types.
Definition at line 87 of file starMesh.H.
|
private |
Default boundary patch name.
Definition at line 90 of file starMesh.H.
|
private |
Default boundary patch types.
Definition at line 93 of file starMesh.H.
|
private |
Boundary patch names.
Definition at line 96 of file starMesh.H.
|
private |
Boundary patch physical types.
Definition at line 99 of file starMesh.H.
|
private |
Point labels (STAR point numbering is not necessarily contiguous)
Definition at line 102 of file starMesh.H.
|
private |
STAR point number for a given vertex.
Definition at line 105 of file starMesh.H.
|
private |
STAR Cell number for a given cell.
Definition at line 108 of file starMesh.H.
|
private |
Cell labels (STAR cell numbering is not necessarily contiguous)
Definition at line 111 of file starMesh.H.
|
private |
STAR Cell permutation label.
Definition at line 114 of file starMesh.H.
|
private |
List of faces for every cell.
Definition at line 117 of file starMesh.H.
|
private |
Cell ID for every boundary face. Used in two-tier boundary.
reconstruction
Definition at line 121 of file starMesh.H.
|
private |
Cell face ID for every boundary face. Used in two-tier boundary.
reconstruction
Definition at line 125 of file starMesh.H.
|
private |
Global face list for polyMesh.
Definition at line 128 of file starMesh.H.
|
private |
Cells as polyhedra for polyMesh.
Definition at line 131 of file starMesh.H.
|
private |
Number of internal faces for polyMesh.
Definition at line 134 of file starMesh.H.
|
private |
Polyhedral mesh boundary patch start indices.
Definition at line 137 of file starMesh.H.
|
mutableprivate |
Point-cell addressing. Used for topological analysis.
Warning. This point cell addressing list potentially contains duplicate cell entries. Use additional checking
Definition at line 142 of file starMesh.H.
|
private |
List of face couples.
Definition at line 145 of file starMesh.H.
|
private |
Can the mesh be treated as a shapeMesh?
Definition at line 148 of file starMesh.H.
|
staticprivate |
Error on unity small tolerance.
Definition at line 153 of file starMesh.H.
|
staticprivate |
Couple match relative point merge tolerance.
Definition at line 156 of file starMesh.H.
|
staticprivate |
Pointers to cell models.
Definition at line 159 of file starMesh.H.
|
staticprivate |
Definition at line 160 of file starMesh.H.
|
staticprivate |
Definition at line 161 of file starMesh.H.
|
staticprivate |
Definition at line 162 of file starMesh.H.
|
staticprivate |
Definition at line 163 of file starMesh.H.
|
staticprivate |
Definition at line 164 of file starMesh.H.
|
staticprivate |
Definition at line 165 of file starMesh.H.
|
staticprivate |
Definition at line 167 of file starMesh.H.
|
staticprivate |
Definition at line 168 of file starMesh.H.
|
staticprivate |
Definition at line 169 of file starMesh.H.
|
staticprivate |
Definition at line 170 of file starMesh.H.
|
staticprivate |
Definition at line 171 of file starMesh.H.
|
staticprivate |
Definition at line 172 of file starMesh.H.
|
staticprivate |
Regular addressing data.
Definition at line 175 of file starMesh.H.
|
staticprivate |
SAMM addressing data.
Definition at line 178 of file starMesh.H.
|
staticprivate |
Definition at line 180 of file starMesh.H.
|
staticprivate |
Definition at line 182 of file starMesh.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.