Writes polyMesh in PROSTAR (v4) bnd/cel/vrt format. More...
Public Member Functions | |
STARCDMeshWriter (const polyMesh &, const scalar scaleFactor=1.0, const bool writeBndFile=true) | |
virtual | ~STARCDMeshWriter ()=default |
virtual bool | write (const fileName &meshName=fileName::null) const |
![]() | |
meshWriter (const polyMesh &, const scalar scaling=1.0) | |
virtual | ~meshWriter () |
Additional Inherited Members | |
![]() | |
static string | defaultMeshName = "meshExport" |
![]() | |
enum | fileHeader { HEADER_CEL, HEADER_VRT, HEADER_BND } |
enum | fileExt { CEL_FILE, VRT_FILE, BND_FILE, INP_FILE } |
enum | matlType { starcdFluidType = 1, starcdSolidType = 2, starcdBaffleType = 3, starcdShellType = 4, starcdLineType = 5, starcdPointType = 6 } |
enum | shapeType { starcdPoint = 1, starcdLine = 2, starcdShell = 3, starcdHex = 11, starcdPrism = 12, starcdTet = 13, starcdPyr = 14, starcdPoly = 255 } |
![]() | |
STARCDCore ()=default | |
![]() | |
static bool | readHeader (IFstream &is, const enum fileHeader header) |
static void | writeHeader (Ostream &os, const enum fileHeader header) |
static fileName | starFileName (const fileName &baseName, const enum fileExt ext) |
static void | removeFiles (const fileName &baseName) |
static label | readPoints (IFstream &is, List< point > &points, List< label > &ids) |
static void | writePoints (Ostream &os, const UList< point > &points, const scalar scaleFactor=1.0) |
![]() | |
const polyMesh & | mesh_ |
scalar | scaleFactor_ |
boundaryRegion | boundaryRegion_ |
cellTable | cellTable_ |
labelList | cellTableId_ |
![]() | |
static const Map< FixedList< int, 6 > > | starToFoamFaceAddr |
static const Map< FixedList< int, 6 > > | foamToStarFaceAddr |
static const char *const | defaultBoundaryName |
static const char *const | defaultSolidBoundaryName |
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 |
||
) |
Definition at line 413 of file STARCDMeshWriter.C.
|
virtualdefault |
|
virtual |
Implements meshWriter.
Definition at line 430 of file STARCDMeshWriter.C.
References meshWriter::defaultMeshName, Foam::endl(), Foam::Info, os(), STARCDCore::removeFiles(), and STARCDCore::VRT_FILE.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.