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


Public Member Functions | |
| meshWriter (const polyMesh &, const scalar scaleFactor=1.0) | |
| Create a writer obejct. More... | |
| virtual | ~meshWriter () |
| Destructor. More... | |
| void | scaleFactor (const scalar scaling) |
| Set points scaling. More... | |
| void | noBoundary () |
| Suppress writing bnd file. More... | |
| virtual bool | write (const fileName &timeName=fileName::null) const =0 |
| Write volume mesh. Subclass must supply this method. More... | |
Static Public Attributes | |
| static string | defaultMeshName = "meshExport" |
| Specify a default mesh name. More... | |
Protected Attributes | |
| const polyMesh & | mesh_ |
| Mesh reference. More... | |
| scalar | scaleFactor_ |
| Scaling factor for points (eg, [m] -> [mm]) More... | |
| bool | writeBoundary_ |
| Write bnd file. More... | |
| boundaryRegion | boundaryRegion_ |
| boundaryRegion persistent data saved as a dictionary More... | |
| cellTable | cellTable_ |
| cellTable persistent data saved as a dictionary More... | |
| labelList | cellTableId_ |
| cellTable IDs for each cell More... | |
Static Protected Attributes | |
| static const cellModel * | unknownModel |
| Pointers to cell shape models. More... | |
| static const cellModel * | tetModel |
| static const cellModel * | pyrModel |
| static const cellModel * | prismModel |
| static const cellModel * | hexModel |
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.
| meshWriter | ( | const polyMesh & | mesh, |
| const scalar | scaleFactor = 1.0 |
||
| ) |
Create a writer obejct.
Definition at line 71 of file meshWriter.C.
|
virtual |
Destructor.
Definition at line 84 of file meshWriter.C.
|
inline |
Set points scaling.
Definition at line 156 of file meshWriter.H.
|
inline |
Suppress writing bnd file.
Definition at line 162 of file meshWriter.H.
References fileName::null, timeName, and meshWriter::write().

|
pure virtual |
Write volume mesh. Subclass must supply this method.
Implemented in STARCD.
Referenced by meshWriter::noBoundary().

|
protected |
Mesh reference.
Definition at line 105 of file meshWriter.H.
Referenced by STARCD::STARCD(), and STARCD::write().
|
protected |
Scaling factor for points (eg, [m] -> [mm])
Definition at line 108 of file meshWriter.H.
|
protected |
|
protected |
boundaryRegion persistent data saved as a dictionary
Definition at line 114 of file meshWriter.H.
Referenced by STARCD::STARCD().
|
protected |
cellTable persistent data saved as a dictionary
Definition at line 117 of file meshWriter.H.
Referenced by STARCD::STARCD().
|
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 |
Specify a default mesh name.
Definition at line 135 of file meshWriter.H.
Referenced by STARCD::write().
1.8.13