FreeFOAM The Cross-Platform CFD Toolkit
STARCD Class Reference

Writes polyMesh in pro-STAR (v4) bnd/cel/vrt format. More...

#include <conversion/STARCDMeshWriter.H>


Detailed Description

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).

Source files

Definition at line 61 of file STARCDMeshWriter.H.

+ Inheritance diagram for STARCD:
+ Collaboration diagram for STARCD:

List of all members.

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.
- Public Member Functions inherited from meshWriter
 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 Public Attributes inherited from meshWriter
static string defaultMeshName = "meshExport"
static string defaultSurfaceName = "surfExport"

Additional Inherited Members

- Protected Attributes inherited from meshWriter
const polyMeshmesh_
 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 Protected Attributes inherited from meshWriter
static const cellModelunknownModel
 Pointers to cell shape models.
static const cellModeltetModel
static const cellModelpyrModel
static const cellModelprismModel
static const cellModelhexModel

Constructor & Destructor Documentation

STARCD ( const polyMesh mesh,
const scalar  scaleFactor = 1.0 
)

Open a file for writing.

Definition at line 468 of file STARCDMeshWriter.C.

~STARCD ( )
virtual

Destructor.

Definition at line 483 of file STARCDMeshWriter.C.


Member Function Documentation

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.


Member Data Documentation

const Foam::label foamToStarFaceAddr
static
Initial value:
{
{ 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.


The documentation for this class was generated from the following files: