Public Member Functions | Static Public Attributes | Protected Attributes | List of all members
meshWriter Class Referenceabstract

Write OpenFOAM meshes and/or results to another CFD format. More...

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

Public Member Functions

 meshWriter (const polyMesh &, const scalar scaling=1.0)
 
virtual ~meshWriter ()
 
virtual bool write (const fileName &timeName=fileName::null) const =0
 

Static Public Attributes

static string defaultMeshName = "meshExport"
 

Protected Attributes

const polyMeshmesh_
 
scalar scaleFactor_
 
boundaryRegion boundaryRegion_
 
cellTable cellTable_
 
labelList cellTableId_
 

Detailed Description

Write OpenFOAM meshes and/or results to another CFD format.

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 78 of file meshWriter.H.

Constructor & Destructor Documentation

◆ meshWriter()

meshWriter ( const polyMesh mesh,
const scalar  scaling = 1.0 
)

Definition at line 32 of file meshWriter.C.

◆ ~meshWriter()

~meshWriter ( )
virtual

Definition at line 53 of file meshWriter.C.

Member Function Documentation

◆ write()

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

Implemented in FIREMeshWriter, and STARCDMeshWriter.

Member Data Documentation

◆ mesh_

const polyMesh& mesh_
protected

Definition at line 94 of file meshWriter.H.

◆ scaleFactor_

scalar scaleFactor_
protected

Definition at line 97 of file meshWriter.H.

◆ boundaryRegion_

boundaryRegion boundaryRegion_
protected

Definition at line 100 of file meshWriter.H.

◆ cellTable_

cellTable cellTable_
protected

Definition at line 103 of file meshWriter.H.

◆ cellTableId_

labelList cellTableId_
protected

Definition at line 106 of file meshWriter.H.

◆ defaultMeshName

Foam::string defaultMeshName = "meshExport"
static

Definition at line 113 of file meshWriter.H.

Referenced by STARCDMeshWriter::write(), and FIREMeshWriter::write().


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