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

meshWriter Class Reference

write OpenFOAM meshes and/or results to another CFD format
  • currently just STAR-CD
More...

Inheritance diagram for meshWriter:
Collaboration diagram for meshWriter:

List of all members.


Public Member Functions

 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.
virtual bool write (const fileName &timeName=fileName::null) const =0
 Write volume mesh.
virtual bool writeSurface (const fileName &timeName=fileName::null, const bool &triangulate=false) const
 Write surface mesh with optional triangulation.

Static Public Attributes

static string defaultMeshName = "meshExport"
static string defaultSurfaceName = "surfExport"

Protected Attributes

const polyMesh & mesh_
 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

static const cellModel * unknownModel
 Pointers to cell shape models.
static const cellModel * tetModel
static const cellModel * pyrModel
static const cellModel * prismModel
static const cellModel * hexModel

Detailed Description

write OpenFOAM meshes and/or results to another CFD format
  • currently just STAR-CD

Files
"constant/boundaryRegion" is an IOMap<dictionary> that contains the boundary type and names. eg,
        (
            0
            {
                BoundaryType    wall;
                Label           Default_Boundary_Region;
            }

            1
            {
                BoundaryType    inlet;
                Label           inlet_1;
            }

            ...

            4
            {
                BoundaryType    pressure;
                Label           outlet;
            }
        )
    

Source files

Definition at line 85 of file meshWriter.H.


Constructor & Destructor Documentation

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

Ccreate a writer obejct.

Definition at line 64 of file meshWriter.C.

~meshWriter (  )  [virtual]

Destructor.

Definition at line 77 of file meshWriter.C.


Member Function Documentation

void scaleFactor ( const scalar  scaling  )  [inline]

Set points scaling.

Definition at line 153 of file meshWriter.H.

void noBoundary (  )  [inline]

Suppress writing bnd file.

Definition at line 159 of file meshWriter.H.

References meshWriter::scaleFactor_.

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

Write volume mesh.

subclass must to supply this method

Implemented in STARCD.

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

Write surface mesh with optional triangulation.

subclass could supply this information

Reimplemented in STARCD.

Definition at line 181 of file meshWriter.H.


Member Data Documentation

const polyMesh& mesh_ [protected]

Mesh reference.

Definition at line 101 of file meshWriter.H.

scalar scaleFactor_ [protected]

Scaling factor for points (eg, [m] -> [mm]).

Definition at line 104 of file meshWriter.H.

Referenced by meshWriter::noBoundary().

bool writeBoundary_ [protected]

Write bnd file.

Definition at line 107 of file meshWriter.H.

boundaryRegion persistent data saved as a dictionary

Definition at line 110 of file meshWriter.H.

cellTable cellTable_ [protected]

cellTable persistent data saved as a dictionary

Definition at line 113 of file meshWriter.H.

labelList cellTableId_ [protected]

cellTable IDs for each cell

Definition at line 116 of file meshWriter.H.

const Foam::cellModel * unknownModel [static, protected]

Initial value:

Pointers to cell shape models.

Definition at line 119 of file meshWriter.H.

const Foam::cellModel * tetModel [static, protected]

Initial value:

Definition at line 120 of file meshWriter.H.

const Foam::cellModel * pyrModel [static, protected]

Initial value:

Definition at line 121 of file meshWriter.H.

const Foam::cellModel * prismModel [static, protected]

Initial value:

Definition at line 122 of file meshWriter.H.

const Foam::cellModel * hexModel [static, protected]

Initial value:

Definition at line 123 of file meshWriter.H.

Foam::string defaultMeshName = "meshExport" [static]

Definition at line 130 of file meshWriter.H.

Foam::string defaultSurfaceName = "surfExport" [static]

Definition at line 131 of file meshWriter.H.


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