FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

gmshToFoam.C File Reference

Reads .msh file as written by Gmsh. More...


Detailed Description

Reads .msh file as written by Gmsh.

Needs surface elements on mesh to be present and aligned with outside faces of the mesh. I.e. if the mesh is hexes, the outside faces need to be quads

Note:
There is something seriously wrong with the ordering written in the .msh file. Normal operation is to check the ordering and invert prisms and hexes if found to be wrong way round. Use the -keepOrientation to keep the raw information.

The code now uses the element (cell,face) physical region id number to create cell zones and faces zones (similar to fluentMeshWithInternalFaces).

A use of the cell zone information, is for field initialization with the "setFields" utility. see the classes: topoSetSource, zoneToCell.

Usage
  • gmshToFoam [OPTIONS] <.msh file>
Parameters:
\<.mshfile>
Todo:
Detailed description of argument.
Parameters:
-keepOrientation
Do not check ordering.
-help
Display help message.
-doc
Display Doxygen API documentation page for this application.
-srcDoc
Display Doxygen source documentation page for this application.

Definition in file gmshToFoam.C.

#include "src/OpenFOAM/global/argList/argList.H"
#include "src/OpenFOAM/meshes/polyMesh/polyMesh.H"
#include "src/OpenFOAM/db/Time/Time.H"
#include "src/OpenFOAM/db/IOstreams/Fstreams/IFstream.H"
#include "src/OpenFOAM/meshes/meshShapes/cellModeller/cellModeller.H"
#include "src/dynamicMesh/polyTopoChange/repatchPolyTopoChanger/repatchPolyTopoChanger.H"
#include "src/meshTools/sets/topoSets/cellSet.H"
#include "src/meshTools/sets/topoSets/faceSet.H"
#include "src/OpenFOAM/include/setRootCase.H"
#include "src/OpenFOAM/include/createTime.H"
Include dependency graph for gmshToFoam.C:

Go to the source code of this file.