OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

STARCD Class Reference

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

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.

Static Public Attributes

static const label foamToStarFaceAddr [4][6]
 Face addressing from OpenFOAM faces -> pro-STAR faces.

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 56 of file STARCDMeshWriter.H.


Constructor & Destructor Documentation

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

Open a file for writing.

Definition at line 460 of file STARCDMeshWriter.C.

~STARCD (  )  [virtual]

Destructor.

Definition at line 475 of file STARCDMeshWriter.C.


Member Function Documentation

void rmFiles ( const fileName &  baseName  )  const

Remove STAR-CD files for the baseName.

Definition at line 481 of file STARCDMeshWriter.C.

bool write ( const fileName &  meshName = fileName::null  )  const [virtual]

Write volume mesh.

Implements meshWriter.

Definition at line 490 of file STARCDMeshWriter.C.

References Foam::rm().

Here is the call graph for this function:

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 522 of file STARCDMeshWriter.C.


Member Data Documentation

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 95 of file STARCDMeshWriter.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd