CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Gmsh] Gmsh with physicals (https://www.cfd-online.com/Forums/openfoam-meshing/61901-gmsh-physicals.html)

Rasmus Gjesing (Gjesing) August 26, 2004 06:53

Gmsh with physicals
 
In the 2.3 version of FOAM, gmshToFoam is supplied, however it can't handle physical boundaries, which is quiet crucial. Are there anyone that are planning to extent the converter to handling this? If so, I would be VERY interested to hear about it!

P.S. In the sourcecode for gmshToFoam it looks like it is under way?!

Mattijs Janssens (Mattijs) August 26, 2004 07:25

Hello Rasmus, gmshToFoam w
 
Hello Rasmus,

gmshToFoam was a quick&dirty attempt to have a look at the gmsh generated meshes. I tried doing the patch info but then got stuck since I was not clear what they were using for the boundaries.

Am quite willing try fixing that piece of code if you can send me a simple testcase. E.g. can you send me a cube built out of tets with some different physical boundaries?

Mattijs

Mattijs Janssens (Mattijs) August 27, 2004 10:57

I adapted the gmshToFoam conv
 
I adapted the gmshToFoam converter to use physical regions as patch numbers. Tried it on one case (thanks Rasmus) and it seems to work.

It will be in the next release or contact me directly if you want to try it.

It requires a version 1 format file (whatever that may be - don't ask me about gmsh) and both volume elements (tets/hexes) and surface elements (triangles) present.

Mattijs

Mattijs Janssens (Mattijs) January 17, 2005 12:04

I wrote a simple netgen Neutr
 
I wrote a simple netgen Neutral file format converter. It will be in the next release or you can contact me if you want it earlier.

Netgen is a pretty good & simple tetrahedral mesh generator which also allows setting of boundary regions.

Mattijs

edvardsen March 9, 2005 16:53

Hello Would it be possible to
 
Hello
Would it be possible to get the netgen to Foam converter from someone? I run OpenFoam on SuSE Linux 9,2 ?

Best Regards
Lars

mattijs March 10, 2005 03:47

Try following post: http://
 
Try following post:

http://www.cfd-online.com/cgi-bin/Op...=1245#POST1245

and
- unpack (tar xzf XXX.tgz)
- cd XXX
- wclean
- wmake

Mattijs

david_h January 27, 2006 12:57

I made some modifications to t
 
I made some modifications to the gmshToFoam converter to write out cellZones and faceZones of internal faces. A time consuming function call was also moved out of an inner loop, which seems to reduce the execution time significantly.

I have posted this to the wiki:
http://openfoamwiki.net/index.php/Contrib_gmshToF oamMod

Dave

mattijs February 2, 2006 14:11

Hello Dave, can I put your
 
Hello Dave,

can I put your gmshToFoam mods into the release?

david_h February 2, 2006 14:20

Yes you can. Dave
 
Yes you can.

Dave

mattijs February 2, 2006 14:36

Could you send a small test ca
 
Could you send a small test case?

Just email it to me directly.


All times are GMT -4. The time now is 18:06.