Public Member Functions | List of all members
STARCDMeshWriter Class Reference

Writes polyMesh in PROSTAR (v4) bnd/cel/vrt format. More...

Inheritance diagram for STARCDMeshWriter:
Inheritance graph
[legend]
Collaboration diagram for STARCDMeshWriter:
Collaboration graph
[legend]

Public Member Functions

 STARCDMeshWriter (const polyMesh &, const scalar scaleFactor=1.0, const bool writeBndFile=true)
 
virtual ~STARCDMeshWriter ()=default
 
virtual bool write (const fileName &meshName=fileName::null) const
 
- Public Member Functions inherited from meshWriter
 meshWriter (const polyMesh &, const scalar scaling=1.0)
 
virtual ~meshWriter ()
 

Additional Inherited Members

- Static Public Attributes inherited from meshWriter
static string defaultMeshName = "meshExport"
 
- Protected Types inherited from STARCDCore
enum  fileHeader { HEADER_CEL, HEADER_VRT, HEADER_BND }
 
enum  fileExt { CEL_FILE, VRT_FILE, BND_FILE, INP_FILE }
 
enum  matlType {
  starcdFluidType = 1, starcdSolidType = 2, starcdBaffleType = 3, starcdShellType = 4,
  starcdLineType = 5, starcdPointType = 6
}
 
enum  shapeType {
  starcdPoint = 1, starcdLine = 2, starcdShell = 3, starcdHex = 11,
  starcdPrism = 12, starcdTet = 13, starcdPyr = 14, starcdPoly = 255
}
 
- Protected Member Functions inherited from STARCDCore
 STARCDCore ()=default
 
- Static Protected Member Functions inherited from STARCDCore
static bool readHeader (IFstream &is, const enum fileHeader header)
 
static void writeHeader (Ostream &os, const enum fileHeader header)
 
static fileName starFileName (const fileName &baseName, const enum fileExt ext)
 
static void removeFiles (const fileName &baseName)
 
static label readPoints (IFstream &is, List< point > &points, List< label > &ids)
 
static void writePoints (Ostream &os, const UList< point > &points, const scalar scaleFactor=1.0)
 
- Protected Attributes inherited from meshWriter
const polyMeshmesh_
 
scalar scaleFactor_
 
boundaryRegion boundaryRegion_
 
cellTable cellTable_
 
labelList cellTableId_
 
- Static Protected Attributes inherited from STARCDCore
static const Map< FixedList< int, 6 > > starToFoamFaceAddr
 
static const Map< FixedList< int, 6 > > foamToStarFaceAddr
 
static const char *const defaultBoundaryName
 
static const char *const defaultSolidBoundaryName
 

Detailed Description

Writes polyMesh in PROSTAR (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

◆ STARCDMeshWriter()

STARCDMeshWriter ( const polyMesh mesh,
const scalar  scaleFactor = 1.0,
const bool  writeBndFile = true 
)

Definition at line 413 of file STARCDMeshWriter.C.

◆ ~STARCDMeshWriter()

virtual ~STARCDMeshWriter ( )
virtualdefault

Member Function Documentation

◆ write()

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

Implements meshWriter.

Definition at line 430 of file STARCDMeshWriter.C.

References meshWriter::defaultMeshName, Foam::endl(), Foam::Info, os(), STARCDCore::removeFiles(), and STARCDCore::VRT_FILE.

Here is the call graph for this function:

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