CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

How To read points from a file in GMSH?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 18, 2011, 00:19
Default How To read points from a file in GMSH?
  #1
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
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.
owayz is offline   Reply With Quote

Old   February 18, 2011, 08:40
Default
  #2
Member
 
William
Join Date: Feb 2011
Location: Minnesota USA
Posts: 33
Rep Power: 15
billynoe is on a distinguished road
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 is offline   Reply With Quote

Old   February 18, 2011, 08:53
Default
  #3
Member
 
William
Join Date: Feb 2011
Location: Minnesota USA
Posts: 33
Rep Power: 15
billynoe is on a distinguished road
Or you can manually edit a .geo file with a text editor it might be easier than entering points in the GUI.
billynoe is offline   Reply With Quote

Old   February 18, 2011, 11:57
Default
  #4
Senior Member
 
Awais Ali
Join Date: Feb 2010
Location: Germany
Posts: 128
Rep Power: 17
owayz is on a distinguished road
Send a message via MSN to owayz
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.
owayz is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 15:59.