Writes polyMesh in PROSTAR (v4) bnd/cel/vrt format. More...
#include <STARCDMeshWriter.H>


Public Member Functions | |
| STARCDMeshWriter (const polyMesh &, const scalar scaleFactor=1.0, const bool writeBndFile=true) | |
| Write mesh files in PROSTAR format. | |
| virtual | ~STARCDMeshWriter ()=default |
| Destructor. | |
| virtual bool | write (const fileName &meshName=fileName::null) const |
| Write volume mesh. | |
| Public Member Functions inherited from meshWriter | |
| meshWriter (const polyMesh &, const scalar scaling=1.0) | |
| Create a writer object with given output scaling. | |
| virtual | ~meshWriter () |
| Destructor. | |
Additional Inherited Members | |
| Static Public Attributes inherited from meshWriter | |
| static string | defaultMeshName = "meshExport" |
| Specify a default mesh name. | |
| Protected Types inherited from STARCDCore | |
| enum | fileHeader { HEADER_CEL , HEADER_VRT , HEADER_BND } |
| Enumeration defining the file headers. More... | |
| enum | fileExt { CEL_FILE , VRT_FILE , BND_FILE , INP_FILE } |
| Enumeration defining the file extensions. More... | |
| enum | matlType { starcdFluidType = 1 , starcdSolidType = 2 , starcdBaffleType = 3 , starcdShellType = 4 , starcdLineType = 5 , starcdPointType = 6 } |
| Basic material type for STARCD/PROSTAR files. More... | |
| enum | shapeType { starcdPoint = 1 , starcdLine = 2 , starcdShell = 3 , starcdHex = 11 , starcdPrism = 12 , starcdTet = 13 , starcdPyr = 14 , starcdPoly = 255 } |
| Shape-Type for STARCD/PROSTAR files. More... | |
| Protected Member Functions inherited from STARCDCore | |
| STARCDCore ()=default | |
| Construct null. | |
| Static Protected Member Functions inherited from STARCDCore | |
| static bool | readHeader (IFstream &is, const enum fileHeader header) |
| Read header and check signature PROSTAR_(CELL|VERTEX|BOUNDARY). | |
| static void | writeHeader (Ostream &os, const enum fileHeader header) |
| Write header for fileType (CELL|VERTEX|BOUNDARY). | |
| static fileName | starFileName (const fileName &baseName, const enum fileExt ext) |
| Resolve base file-name for the given file-type. | |
| static void | removeFiles (const fileName &baseName) |
| Remove existing PROSTAR files for the given base file-name. | |
| static label | readPoints (IFstream &is, List< point > &points, List< label > &ids) |
| Read points from a (.vrt) file, return the max prostar id used. | |
| static void | writePoints (Ostream &os, const UList< point > &points, const scalar scaleFactor=1.0) |
| Write header and points to (.vrt) file, optionally with scaling. | |
| Protected Attributes inherited from meshWriter | |
| const polyMesh & | mesh_ |
| Mesh reference. | |
| scalar | scaleFactor_ |
| Scaling factor for points (eg, [m] -> [mm]). | |
| boundaryRegion | boundaryRegion_ |
| boundaryRegion persistent data saved as a dictionary | |
| cellTable | cellTable_ |
| cellTable persistent data saved as a dictionary | |
| labelList | cellTableId_ |
| cellTable IDs for each cell | |
| Static Protected Attributes inherited from STARCDCore | |
| static const Map< FixedList< int, 6 > > | starToFoamFaceAddr |
| Face addressing from PROSTAR faces to OpenFOAM faces. | |
| static const Map< FixedList< int, 6 > > | foamToStarFaceAddr |
| Face addressing from OpenFOAM faces to PROSTAR faces. | |
| static const char *const | defaultBoundaryName |
| The name for default (unassigned) boundaries. | |
| static const char *const | defaultSolidBoundaryName |
| The name we have chosen for default (unassigned) solid boundaries. | |
Writes polyMesh in PROSTAR (v4) bnd/cel/vrt format.
The cellTableId and cellTable information are used (if available). Otherwise the cellZones are used (if available).
Definition at line 55 of file STARCDMeshWriter.H.
| STARCDMeshWriter | ( | const polyMesh & | mesh, |
| const scalar | scaleFactor = 1.0, | ||
| const bool | writeBndFile = true ) |
Write mesh files in PROSTAR format.
Definition at line 412 of file STARCDMeshWriter.C.
References meshWriter::boundaryRegion_, meshWriter::cellTable_, mesh, and meshWriter::mesh_.
|
virtualdefault |
Destructor.
References fileName::null.
|
virtual |
Write volume mesh.
Implements meshWriter.
Definition at line 430 of file STARCDMeshWriter.C.
References meshWriter::defaultMeshName, Foam::endl(), Foam::Info, meshWriter::mesh_, os(), STARCDCore::removeFiles(), meshWriter::scaleFactor_, STARCDCore::starFileName(), STARCDCore::VRT_FILE, and STARCDCore::writePoints().
