write OpenFOAM meshes and/or results to another CFD format
#include <conversion/meshWriter.H>
write OpenFOAM meshes and/or results to another CFD format
"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; } )
Definition at line 89 of file meshWriter.H.
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 |
meshWriter | ( | const polyMesh & | mesh, |
const scalar | scaleFactor = 1.0
|
||
) |
Ccreate a writer obejct.
Definition at line 72 of file meshWriter.C.
~meshWriter | ( | ) | [virtual]
|
Destructor.
Definition at line 85 of file meshWriter.C.
void scaleFactor | ( | const scalar | scaling ) | [inline]
|
Set points scaling.
Definition at line 157 of file meshWriter.H.
References meshWriter::scaleFactor_.
void noBoundary | ( | ) | [inline]
|
Suppress writing bnd file.
Definition at line 163 of file meshWriter.H.
References meshWriter::writeBoundary_.
virtual bool write | ( | const fileName & | timeName = fileName::null
) |
const [pure virtual]
|
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.
Mesh reference.
Definition at line 105 of file meshWriter.H.
scalar scaleFactor_ [protected]
|
Scaling factor for points (eg, [m] -> [mm])
Definition at line 108 of file meshWriter.H.
Referenced by meshWriter::scaleFactor().
bool writeBoundary_ [protected]
|
Write bnd file.
Definition at line 111 of file meshWriter.H.
Referenced by meshWriter::noBoundary().
boundaryRegion boundaryRegion_ [protected]
|
boundaryRegion persistent data saved as a dictionary
Definition at line 114 of file meshWriter.H.
cellTable cellTable_ [protected]
|
cellTable persistent data saved as a dictionary
Definition at line 117 of file meshWriter.H.
labelList cellTableId_ [protected]
|
cellTable IDs for each cell
Definition at line 120 of file meshWriter.H.
const Foam::cellModel * unknownModel [static, protected]
|
Foam::cellModeller:: lookup ( "unknown" )
Pointers to cell shape models.
Definition at line 123 of file meshWriter.H.
const Foam::cellModel * tetModel [static, protected]
|
Foam::cellModeller:: lookup ( "tet" )
Definition at line 124 of file meshWriter.H.
const Foam::cellModel * pyrModel [static, protected]
|
Foam::cellModeller:: lookup ( "pyr" )
Definition at line 125 of file meshWriter.H.
const Foam::cellModel * prismModel [static, protected]
|
Foam::cellModeller:: lookup ( "prism" )
Definition at line 126 of file meshWriter.H.
const Foam::cellModel * hexModel [static, protected]
|
Foam::cellModeller:: lookup ( "hex" )
Definition at line 127 of file meshWriter.H.
Foam::string defaultMeshName = "meshExport" [static]
|
Definition at line 134 of file meshWriter.H.
Referenced by STARCD::write().
Foam::string defaultSurfaceName = "surfExport" [static]
|
Definition at line 135 of file meshWriter.H.
Referenced by STARCD::writeSurface().