Write OpenFOAM meshes and/or results to another CFD format. More...
Public Member Functions | |
meshWriter (const polyMesh &, const scalar scaling=1.0) | |
Create a writer object with given output scaling. More... | |
virtual | ~meshWriter () |
Destructor. 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... | |
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... | |
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 78 of file meshWriter.H.
meshWriter | ( | const polyMesh & | mesh, |
const scalar | scaling = 1.0 |
||
) |
Create a writer object with given output scaling.
Treats a zero or negative scale factor as unity scaling.
Definition at line 32 of file meshWriter.C.
|
virtual |
Destructor.
Definition at line 53 of file meshWriter.C.
|
pure virtual |
Write volume mesh. Subclass must supply this method.
Implemented in FIREMeshWriter, and STARCDMeshWriter.
|
protected |
Mesh reference.
Definition at line 100 of file meshWriter.H.
|
protected |
Scaling factor for points (eg, [m] -> [mm])
Definition at line 105 of file meshWriter.H.
|
protected |
boundaryRegion persistent data saved as a dictionary
Definition at line 110 of file meshWriter.H.
|
protected |
cellTable persistent data saved as a dictionary
Definition at line 115 of file meshWriter.H.
|
protected |
cellTable IDs for each cell
Definition at line 120 of file meshWriter.H.
|
static |
Specify a default mesh name.
Definition at line 129 of file meshWriter.H.
Referenced by STARCDMeshWriter::write(), and FIREMeshWriter::write().