CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   How To read points from a file in GMSH? (

owayz February 18, 2011 00:19

How To read points from a file in GMSH?
I know its OPENFOAM forum, but and answer would really help me a alot. :)
I have point in a file. I want to read those points directly in GMSH to create my geometry. And I am findind it real hard to do that. Points are large in number, so it will take me alot of time to manually draw them in GMSH.

billynoe February 18, 2011 08:40

If you have solid modeling software use that and save the model as an .iges file you can open the iges in gmsh. Then you will have to convert it to .geo add physical volumes and surfaces so OpenFoam will find seperate patches. then mesh in gmsh save the .msh file. finnaly run "gmshToFoam <yourfile.msh>" I have had problems converting very complex geometries from iges to geo though.

billynoe February 18, 2011 08:53

Or you can manually edit a .geo file with a text editor it might be easier than entering points in the GUI.

owayz February 18, 2011 11:57

Ya found the solution. Perhaps text editor trick is the easiest one.
You can also use excel or spreadsheet to do some manipulation on points. and It would get alot easier if you can collect all the points in a spreadsheet. There you can number points very easily. And you are done with it. :)

Thanks four your help guys. :)

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