write OpenFOAM meshes and/or results to another CFD format More...
#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.
Inheritance diagram for meshWriter:
Collaboration diagram for meshWriter: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.
|
virtual |
Destructor.
Definition at line 85 of file meshWriter.C.
|
inline |
Set points scaling.
Definition at line 157 of file meshWriter.H.
References meshWriter::scaleFactor_.
|
inline |
Suppress writing bnd file.
Definition at line 163 of file meshWriter.H.
References meshWriter::writeBoundary_.
|
pure virtual |
|
inlinevirtual |
Write surface mesh with optional triangulation.
subclass could supply this information
Reimplemented in STARCD.
Definition at line 181 of file meshWriter.H.
|
protected |
Mesh reference.
Definition at line 105 of file meshWriter.H.
|
protected |
Scaling factor for points (eg, [m] -> [mm])
Definition at line 108 of file meshWriter.H.
Referenced by meshWriter::scaleFactor().
|
protected |
Write bnd file.
Definition at line 111 of file meshWriter.H.
Referenced by meshWriter::noBoundary().
|
protected |
boundaryRegion persistent data saved as a dictionary
Definition at line 114 of file meshWriter.H.
|
protected |
cellTable persistent data saved as a dictionary
Definition at line 117 of file meshWriter.H.
|
protected |
cellTable IDs for each cell
Definition at line 120 of file meshWriter.H.
|
staticprotected |
Pointers to cell shape models.
Definition at line 123 of file meshWriter.H.
|
staticprotected |
Definition at line 124 of file meshWriter.H.
|
staticprotected |
Definition at line 125 of file meshWriter.H.
|
staticprotected |
Definition at line 126 of file meshWriter.H.
|
staticprotected |
Definition at line 127 of file meshWriter.H.
|
static |
Definition at line 134 of file meshWriter.H.
Referenced by STARCD::write().
|
static |
Definition at line 135 of file meshWriter.H.
Referenced by STARCD::writeSurface().