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.
| |
Static Public Attributes | |
static const label | foamToStarFaceAddr [4][6] |
Face addressing from OpenFOAM faces -> pro-STAR faces.
|
Open a file for writing.
Definition at line 468 of file STARCDMeshWriter.C.
~STARCD | ( | ) | [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().
bool write | ( | const fileName & | meshName = fileName::null
) |
const [virtual]
|
Write volume mesh.
Implements meshWriter.
Definition at line 498 of file STARCDMeshWriter.C.
References meshWriter::defaultMeshName.
bool writeSurface | ( | const fileName & | meshName = fileName::null ,
|
const bool & | triangulate = false
|
||
) | const [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(), HashTable< T, Key, Hash >::size(), List< T >::size(), PtrList< T >::size(), and face::triangles().
const Foam::label foamToStarFaceAddr [static]
|
{ { 4, 5, 2, 3, 0, 1 }, { 0, 1, 4, 5, 2, -1 }, { 5, 4, 2, 0, -1, -1 }, { 0, 4, 3, 5, 2, -1 } }
Face addressing from OpenFOAM faces -> pro-STAR faces.
Definition at line 100 of file STARCDMeshWriter.H.