Writes polyMesh in AVL/FIRE polyhedra format (fpma, fpmb). More...
#include <FIREMeshWriter.H>


Public Member Functions | |
| FIREMeshWriter (const polyMesh &, const scalar scaleFactor=1.0) | |
| Prepare for writing, optionally with scaling. | |
| virtual | ~FIREMeshWriter ()=default |
| Destructor. | |
| virtual bool | write (const fileName &meshName=fileName::null) const |
| Write volume mesh. | |
| Public Member Functions inherited from meshWriter | |
| meshWriter (const polyMesh &, const scalar scaling=1.0) | |
| Create a writer object with given output scaling. | |
| virtual | ~meshWriter () |
| Destructor. | |
Static Public Attributes | |
| static bool | binary = false |
| Write binary (default ascii). | |
| static bool | compress = false |
| Write with compression (default false). | |
| static bool | prefixBoundary = true |
| Prefix patches with 'BND_' before writing (default true). | |
| Static Public Attributes inherited from meshWriter | |
| static string | defaultMeshName = "meshExport" |
| Specify a default mesh name. | |
Additional Inherited Members | |
| Public Types inherited from FIRECore | |
| enum | selectionType { cellSelection = 2 , faceSelection = 3 } |
| Selection Types. More... | |
| enum | shapeType { fireLine = 1 , fireTri = 2 , fireQuad = 3 , fireTet = 4 , fireHex = 5 , firePyr = 6 , firePrism = 8 } |
| Shape-Type for FIRE (FLMA) files. More... | |
| enum | fileExt3d { POLY_ASCII , POLY_BINARY , POLY_ASCII_Z , POLY_BINARY_Z } |
| Enumeration defining the file extensions for 3D types. More... | |
| typedef int32_t | fireInt_t |
| Integer type (binary format). | |
| typedef double | fireReal_t |
| Float type (binary format). | |
| Static Public Member Functions inherited from FIRECore | |
| static fileName | fireFileName (const fileName &baseName, const enum fileExt3d) |
| Resolve base file-name for the given file-type. | |
| static label | getFireLabel (ISstream &) |
| Get an integer (ascii or binary). | |
| static point | getFirePoint (ISstream &) |
| Get an point x/y/z (ascii or binary). | |
| static std::string | getFireString (ISstream &) |
| Extract a string (ascii or binary). | |
| static void | putFireLabel (OSstream &, const label) |
| Write an integer (ascii or binary). | |
| static void | putFireLabels (OSstream &, const labelUList &) |
| Write multiple integers (ascii or binary). | |
| static void | putFireLabels (OSstream &, const label count, const label start) |
| Write an on-the-fly list of integers (ascii or binary). | |
| static void | putFirePoint (OSstream &, const point &) |
| Write a point x/y/z (ascii or binary). | |
| static void | putFireString (OSstream &, const std::string &) |
| Write a string (ascii or binary). | |
| Protected Member Functions inherited from FIRECore | |
| FIRECore ()=default | |
| Construct null. | |
| Static Protected Member Functions inherited from FIRECore | |
| static label | readPoints (ISstream &, pointField &) |
| Read points. | |
| Protected Attributes inherited from meshWriter | |
| const polyMesh & | mesh_ |
| Mesh reference. | |
| scalar | scaleFactor_ |
| Scaling factor for points (eg, [m] -> [mm]). | |
| 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 inherited from FIRECore | |
| static const Enum< fileExt3d > | file3dExtensions |
Writes polyMesh in AVL/FIRE polyhedra format (fpma, fpmb).
It is also possible to write compressed formats (fpmaz, fpmbz)
In the AVL/FIRE polyhedra format, the faces normals point inwards, whereas the OpenFOAM face normals always point outwards.
Definition at line 62 of file FIREMeshWriter.H.
| FIREMeshWriter | ( | const polyMesh & | mesh, |
| const scalar | scaleFactor = 1.0 ) |
Prepare for writing, optionally with scaling.
Treats a zero or negative scale factor as unity scaling.
Definition at line 237 of file FIREMeshWriter.C.
References mesh.
|
virtualdefault |
Destructor.
References fileName::null.
|
virtual |
Write volume mesh.
Implements meshWriter.
Definition at line 249 of file FIREMeshWriter.C.
References IOstreamOption::ASCII, IOstreamOption::BINARY, binary, autoPtr< T >::clear(), compress, IOstreamOption::COMPRESSED, IOstreamOption::compression(), TimePaths::constant(), meshWriter::defaultMeshName, Foam::endl(), fileName::ext(), FIRECore::file3dExtensions, FIRECore::fireFileName(), IOstreamOption::format(), found, Foam::Info, meshWriter::mesh_, Foam::mv(), FIRECore::POLY_ASCII, FIRECore::POLY_ASCII_Z, FIRECore::POLY_BINARY, FIRECore::POLY_BINARY_Z, fileName::remove_ext(), Time::timeName(), IOstreamOption::UNCOMPRESSED, and writeGeometry().

|
static |
Write binary (default ascii).
Definition at line 96 of file FIREMeshWriter.H.
Referenced by write().
|
static |
Write with compression (default false).
Definition at line 101 of file FIREMeshWriter.H.
Referenced by write().
|
static |
Prefix patches with 'BND_' before writing (default true).
Definition at line 106 of file FIREMeshWriter.H.