CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How To read points from a file in GMSH? (https://www.cfd-online.com/Forums/openfoam/85129-how-read-points-file-gmsh.html)

owayz February 17, 2011 23: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 07: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 07: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 10: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 07:57.