|
[Sponsors] |
February 24, 2008, 16:18 |
GmshToFoam example
|
#1 |
Guest
Posts: n/a
|
hej,
can I find an example how to use gmshToFoam in any of the OpenFOAM downloads? I want to use a mesh (.msh) generated by gmsh for Navier-Stokes solver. The openfoamwiki.net describes how to convert a gmsh gemoetry (.geo) file for OpenFOAM using gmsh2ToFoam. Is the '2' in the executable name a typo or is it different from the executable for a .msh? Guillaume |
|
February 24, 2008, 19:06 |
Hi Guillaume
You'll find tw
|
#2 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Hi Guillaume
You'll find two example .msh files CubeVer1.msh and piece-extr-rec.msh.gz under OpenFOAM-1.4.1/applications/utilities/mesh/conversion/gmshToFoam/. gmsh2ToFoam is a user contributed utility downloadable from wiki and made when gmshToFoam still hadn't supported .msh file format version 2. Takuya |
|
February 25, 2008, 03:34 |
Thank you, Takuya! I was searc
|
#3 |
Guest
Posts: n/a
|
Thank you, Takuya! I was searching through the complete OpenFoam directory for *.msh files, but somehow I missed them in the obvious location.
Now I have applied gmshToFoam succesfully to the CubeVer1.msh. At least there are no error messages, only one warning. But the CubeVer1.msh doesn't contain any patch names. How can I use it with the icoFoam/cavity example, where movingwall, front, back,... patches names are used to identify the boundary conditions? Guillaume |
|
February 25, 2008, 20:06 |
Hi Guillaume,
You have to che
|
#4 |
Super Moderator
Takuya OSHIMA
Join Date: Mar 2009
Location: Niigata City, Japan
Posts: 518
Blog Entries: 1
Rep Power: 20 |
Hi Guillaume,
You have to check which patch name (patch0, patch1, ...) is assigned to which physical surface number from the message output of gmshToFoam (the number suffixes of patch0, patch1, ... don't necessarily match the physical surface number assigned in a .msh file) during conversion and hand-edit polyMesh/boundary afterwards. If you'd like to use information contained in $PhysicalNames section of .msh file version 2 format, as far as I know gmsh2ToFoam is the choice so far. Takuya |
|
December 2, 2016, 12:02 |
|
#5 |
New Member
Lucía
Join Date: Apr 2016
Posts: 1
Rep Power: 0 |
Hi,
I'm using gmsh to create a mesh for an application of a solar updraft chimney. I wanted to use it with OpenFOAM, but when i run gmshToFoam some patches are not recognized, they appear as follows: chimney { type patch; physicalType patch; nFaces 0; startFace 910694; } I'm usign OF version 4. Does anybody know how to solve this? Thank you very much, Best regards! Gaia |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] New version of gmshToFoam? | stootoon | OpenFOAM Meshing & Mesh Conversion | 7 | February 14, 2022 09:01 |
[Gmsh] gmshToFoam problem. | nilashansen | OpenFOAM Meshing & Mesh Conversion | 11 | June 5, 2016 10:45 |
[Gmsh] Cell to node connectivity after 'gmshToFoam' | Jibran | OpenFOAM Meshing & Mesh Conversion | 1 | June 8, 2015 09:09 |
[Gmsh] gmshTofoam pbm with cyclicAMI | acahuzac | OpenFOAM Meshing & Mesh Conversion | 2 | October 20, 2014 03:53 |
[Gmsh] gmshToFoam command | mvinassa | OpenFOAM Meshing & Mesh Conversion | 1 | April 25, 2014 07:36 |