CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Open Source Meshers: Gmsh, Netgen, CGNS, ... (https://www.cfd-online.com/Forums/openfoam-meshing-open/)
-   -   Gmsh with physicals (https://www.cfd-online.com/Forums/openfoam-meshing-open/61901-gmsh-physicals.html)

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

In the 2.3 version of FOAM, g
 
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 13: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 17: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 04: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 13: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 15:11

Hello Dave, can I put your
 
Hello Dave,

can I put your gmshToFoam mods into the release?

david_h February 2, 2006 15:20

Yes you can. Dave
 
Yes you can.

Dave

mattijs February 2, 2006 15: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:43.