STARCD Class Reference

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

Inheritance diagram for STARCD:
Collaboration diagram for STARCD:

Public Member Functions

 STARCD (const polyMesh &, const scalar scaleFactor=1.0)
 Open a file for writing. More...
 
 STARCD (const STARCD &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~STARCD ()
 Destructor. More...
 
void rmFiles (const fileName &baseName) const
 Remove STAR-CD files for the baseName. More...
 
virtual bool write (const fileName &meshName=fileName::null) const
 Write volume mesh. More...
 
void operator= (const STARCD &)=delete
 Disallow default bitwise assignment. More...
 
- Public Member Functions inherited from meshWriter
 meshWriter (const polyMesh &, const scalar scaleFactor=1.0)
 Create a writer object. More...
 
 meshWriter (const meshWriter &)=delete
 Disallow default bitwise copy construction. More...
 
virtual ~meshWriter ()
 Destructor. More...
 
void scaleFactor (const scalar scaling)
 Set points scaling. More...
 
void noBoundary ()
 Suppress writing bnd file. More...
 
void operator= (const meshWriter &)=delete
 Disallow default bitwise assignment. More...
 

Static Public Attributes

static const label foamToStarFaceAddr [4][6]
 Face addressing from OpenFOAM faces -> pro-STAR faces. More...
 
- Static Public Attributes inherited from meshWriter
static string defaultMeshName = "meshExport"
 Specify a default mesh name. More...
 

Additional Inherited Members

- Protected Attributes inherited from meshWriter
const polyMeshmesh_
 Mesh reference. More...
 
scalar scaleFactor_
 Scaling factor for points (eg, [m] -> [mm]) More...
 
bool writeBoundary_
 Write bnd file. More...
 
boundaryRegion boundaryRegion_
 boundaryRegion persistent data saved as a dictionary More...
 
cellTable cellTable_
 cellTable persistent data saved as a dictionary More...
 
labelList cellTableId_
 cellTable IDs for each cell More...
 
- Static Protected Attributes inherited from meshWriter
static const cellModelunknownModel
 Pointers to cell shape models. More...
 
static const cellModeltetModel
 
static const cellModelpyrModel
 
static const cellModelprismModel
 
static const cellModelhexModel
 

Detailed Description

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

The cellTableId and cellTable information are used (if available). Otherwise the cellZones are used (if available).

Source files

Definition at line 55 of file STARCDMeshWriter.H.

Constructor & Destructor Documentation

◆ STARCD() [1/2]

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

Open a file for writing.

Definition at line 466 of file STARCDMeshWriter.C.

References meshWriter::boundaryRegion_, meshWriter::cellTable_, meshWriter::mesh_, boundaryRegion::readDict(), and cellTable::readDict().

Here is the call graph for this function:

◆ STARCD() [2/2]

STARCD ( const STARCD )
delete

Disallow default bitwise copy construction.

◆ ~STARCD()

~STARCD ( )
virtual

Destructor.

Definition at line 482 of file STARCDMeshWriter.C.

Member Function Documentation

◆ rmFiles()

void rmFiles ( const fileName baseName) const

Remove STAR-CD files for the baseName.

Definition at line 488 of file STARCDMeshWriter.C.

References Foam::rm().

Here is the call graph for this function:

◆ write()

bool write ( const fileName meshName = fileName::null) const
virtual

Write volume mesh.

Implements meshWriter.

Definition at line 497 of file STARCDMeshWriter.C.

References meshWriter::defaultMeshName, meshName, and fileName::name().

Here is the call graph for this function:

◆ operator=()

void operator= ( const STARCD )
delete

Disallow default bitwise assignment.

Member Data Documentation

◆ foamToStarFaceAddr

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


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