Writes polyMesh in pro-STAR (v4) bnd/cel/vrt format. More...
Public Member Functions | |
STARCD (const polyMesh &, const scalar scaleFactor=1.0) | |
Open a file for writing. More... | |
virtual | ~STARCD () |
Destructor. More... | |
void | rmFiles (const fileName &baseName) const |
Remove STAR-CD files for the baseName. More... | |
virtual bool | write (const fileName &meshName=fileName::null) const |
Write volume mesh. More... | |
![]() | |
meshWriter (const polyMesh &, const scalar scaleFactor=1.0) | |
Create a writer obejct. More... | |
virtual | ~meshWriter () |
Destructor. More... | |
void | scaleFactor (const scalar scaling) |
Set points scaling. More... | |
void | noBoundary () |
Suppress writing bnd file. More... | |
Static Public Attributes | |
static const label | foamToStarFaceAddr [4][6] |
Face addressing from OpenFOAM faces -> pro-STAR faces. More... | |
![]() | |
static string | defaultMeshName = "meshExport" |
Specify a default mesh name. More... | |
Private Member Functions | |
STARCD (const STARCD &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const STARCD &) |
Disallow default bitwise assignment. More... | |
void | writePoints (const fileName &baseName) const |
Write points. More... | |
void | writeCells (const fileName &baseName) const |
Write cells. More... | |
void | writeBoundary (const fileName &baseName) const |
Write boundary. More... | |
void | getCellTable () |
label | findDefaultBoundary () const |
Static Private Member Functions | |
static void | writeHeader (Ostream &, const char *filetype) |
Pro-STAR 4+ header format. More... | |
Static Private Attributes | |
static const char * | defaultBoundaryName |
Additional Inherited Members | |
![]() | |
const polyMesh & | mesh_ |
Mesh reference. More... | |
scalar | scaleFactor_ |
Scaling factor for points (eg, [m] -> [mm]) More... | |
bool | writeBoundary_ |
Write bnd file. More... | |
boundaryRegion | boundaryRegion_ |
boundaryRegion persistent data saved as a dictionary More... | |
cellTable | cellTable_ |
cellTable persistent data saved as a dictionary More... | |
labelList | cellTableId_ |
cellTable IDs for each cell More... | |
![]() | |
static const cellModel * | unknownModel |
Pointers to cell shape models. More... | |
static const cellModel * | tetModel |
static const cellModel * | pyrModel |
static const cellModel * | prismModel |
static const cellModel * | hexModel |
Writes polyMesh in pro-STAR (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.
Open a file for writing.
Definition at line 468 of file STARCDMeshWriter.C.
|
virtual |
Destructor.
Definition at line 483 of file STARCDMeshWriter.C.
|
private |
Disallow default bitwise assignment.
|
staticprivate |
Pro-STAR 4+ header format.
Definition at line 174 of file STARCDMeshWriter.C.
References Foam::endl(), and Foam::nl.
|
private |
Write points.
Definition at line 189 of file STARCDMeshWriter.C.
References Foam::endl(), OSstream::flush(), forAll, Foam::Info, OFstream::name(), Foam::nl, points, OSstream::precision(), and IOstream::setf().
|
private |
Write cells.
Definition at line 219 of file STARCDMeshWriter.C.
References cellId, cells, dict, Foam::endl(), f(), forAll, cellModel::index(), Foam::Info, cellShape::model(), OFstream::name(), Foam::nl, and List::size().
|
private |
Write boundary.
Definition at line 361 of file STARCDMeshWriter.C.
References cellId, cells, Foam::endl(), cellShape::faces(), Foam::findIndex(), forAll, cellModel::index(), Foam::Info, cellShape::model(), OFstream::name(), Foam::name(), and patches.
|
private |
Definition at line 67 of file STARCDMeshWriter.C.
References List::clear(), dict, Foam::endl(), forAll, IOobject::headerOk(), Foam::Info, polyMesh::meshSubDir, zone::name(), IOobject::NO_WRITE, IOobject::objectPath(), IOobject::READ_IF_PRESENT, List::size(), and WarningInFunction.
|
private |
Definition at line 48 of file STARCDMeshWriter.C.
References polyMesh::boundaryMesh(), STARCD::defaultBoundaryName, forAll, meshWriter::mesh_, Foam::name(), and patches.
void rmFiles | ( | const fileName & | baseName | ) | const |
Remove STAR-CD files for the baseName.
Definition at line 489 of file STARCDMeshWriter.C.
References Foam::rm().
|
virtual |
Write volume mesh.
Implements meshWriter.
Definition at line 498 of file STARCDMeshWriter.C.
References meshWriter::defaultMeshName, and meshName.
|
staticprivate |
Definition at line 61 of file STARCDMeshWriter.H.
Referenced by STARCD::findDefaultBoundary().
|
static |
Face addressing from OpenFOAM faces -> pro-STAR faces.
Definition at line 94 of file STARCDMeshWriter.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.