|
[Sponsors] |
February 18, 2011, 00:19 |
How To read points from a file in GMSH?
|
#1 |
Senior Member
|
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. |
|
February 18, 2011, 08:40 |
|
#2 |
Member
William
Join Date: Feb 2011
Location: Minnesota USA
Posts: 33
Rep Power: 15 |
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.
|
|
February 18, 2011, 08:53 |
|
#3 |
Member
William
Join Date: Feb 2011
Location: Minnesota USA
Posts: 33
Rep Power: 15 |
Or you can manually edit a .geo file with a text editor it might be easier than entering points in the GUI.
|
|
February 18, 2011, 11:57 |
|
#4 |
Senior Member
|
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
wmake compiling new solver | mksca | OpenFOAM Programming & Development | 14 | June 22, 2018 07:29 |
paraview installation woes | vex | OpenFOAM Installation | 15 | January 30, 2011 08:11 |
1.7.x Environment Variables on Linux 10.04 | rasma | OpenFOAM Installation | 9 | July 30, 2010 05:43 |
OpenFOAM Install Script | ljsh | OpenFOAM Installation | 82 | October 12, 2009 12:47 |
DxFoam reader update | hjasak | OpenFOAM Post-Processing | 69 | April 24, 2008 02:24 |