FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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.

Static Public Attributes

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

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.

bool writeSurface ( const fileName &   meshName = fileName::null,
const bool &   triangulate = false  
) const [virtual]

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: