Writes polyMesh in pro-STAR (v4) bnd/cel/vrt format. More...
#include <conversion/STARCDMeshWriter.H>
Writes polyMesh in pro-STAR (v4) bnd/cel/vrt format.
Alternatively, extracts the surface of the FOAM mesh into pro-STAR (v4) .cel/.vrt/ format. This can be useful, for example, for surface morphing in an external package.
The cellTableId and cellTable information are used (if available). Otherwise the cellZones are used (if available).
Definition at line 61 of file STARCDMeshWriter.H.
Public Member Functions | |
STARCD (const polyMesh &, const scalar scaleFactor=1.0) | |
Open a file for writing. | |
virtual | ~STARCD () |
Destructor. | |
void | rmFiles (const fileName &baseName) const |
Remove STAR-CD files for the baseName. | |
virtual bool | write (const fileName &meshName=fileName::null) const |
Write volume mesh. | |
virtual bool | writeSurface (const fileName &meshName=fileName::null, const bool &triangulate=false) const |
Write surface mesh with optional triangulation. | |
![]() | |
meshWriter (const polyMesh &, const scalar scaleFactor=1.0) | |
Ccreate a writer obejct. | |
virtual | ~meshWriter () |
Destructor. | |
void | scaleFactor (const scalar scaling) |
Set points scaling. | |
void | noBoundary () |
Suppress writing bnd file. |
Static Public Attributes | |
static const label | foamToStarFaceAddr [4][6] |
Face addressing from OpenFOAM faces -> pro-STAR faces. | |
![]() | |
static string | defaultMeshName = "meshExport" |
static string | defaultSurfaceName = "surfExport" |
Additional Inherited Members | |
![]() | |
const polyMesh & | mesh_ |
Mesh reference. | |
scalar | scaleFactor_ |
Scaling factor for points (eg, [m] -> [mm]) | |
bool | writeBoundary_ |
Write bnd file. | |
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 const cellModel * | unknownModel |
Pointers to cell shape models. | |
static const cellModel * | tetModel |
static const cellModel * | pyrModel |
static const cellModel * | prismModel |
static const cellModel * | hexModel |
Open a file for writing.
Definition at line 468 of file STARCDMeshWriter.C.
|
virtual |
Destructor.
Definition at line 483 of file STARCDMeshWriter.C.
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.
|
virtual |
Write surface mesh with optional triangulation.
Reimplemented from meshWriter.
Definition at line 530 of file STARCDMeshWriter.C.
References HashTable< T, Key, Hash >::clear(), meshWriter::defaultSurfaceName, Foam::endl(), f(), forAll, forAllConstIter, Foam::Info, HashSet< Key, Hash >::insert(), OFstream::name(), Foam::nl, face::nTriangles(), OSstream::precision(), IOstream::setf(), List< T >::setSize(), List< T >::size(), PtrList< T >::size(), HashTable< T, Key, Hash >::size(), and face::triangles().
|
static |
Face addressing from OpenFOAM faces -> pro-STAR faces.
Definition at line 100 of file STARCDMeshWriter.H.