CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

fortran code to read mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By aerosayan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2011, 16:57
Default fortran code to read mesh
  #1
Senior Member
 
Hassan
Join Date: Apr 2009
Posts: 106
Rep Power: 17
HaKu is on a distinguished road
i need a fortran code that can read the mesh generated by gridgen or gambit...
any help will be appreciated...

regards
HaKu is offline   Reply With Quote

Old   June 9, 2011, 17:29
Default
  #2
Member
 
Nickul's Avatar
 
Nick
Join Date: Mar 2009
Location: England (South West)
Posts: 35
Rep Power: 17
Nickul is on a distinguished road
could you expand on this a little ?

Why fortran, is this your in house language? And after having read the grid what do you want to do with it? Translate it ?, interogate it ?

I do have something in mind, but the developer prefers to stay under the radar so as to speak.
__________________
A simple aero calculator
www.caided.co.uk
Nickul is offline   Reply With Quote

Old   December 15, 2020, 12:57
Default
  #3
New Member
 
Bappi
Join Date: Dec 2020
Posts: 5
Rep Power: 5
mohammadbappiamin is on a distinguished road
Quote:
Originally Posted by HaKu View Post
i need a fortran code that can read the mesh generated by gridgen or gambit...
any help will be appreciated...

regards
Hi,

I have generated a 2D mesh using Gambit and now I need to read the mesh that is generated. Did you find or write any program in Fortran? Do you mind sharing it with me? I am really struggling with it and I would appreciate if you can please help me out.

Thanks
Bappi
mohammadbappiamin is offline   Reply With Quote

Old   December 15, 2020, 13:13
Default
  #4
Senior Member
 
Sayan Bhattacharjee
Join Date: Mar 2020
Posts: 495
Rep Power: 8
aerosayan is on a distinguished road
Quote:
Originally Posted by HaKu View Post
i need a fortran code that can read the mesh generated by gridgen or gambit...
any help will be appreciated...

regards

Never used GAMBIT myself. But reading in mesh files aren't difficult if the mesh file is in ASCII text format and you have documentation of the mesh file format.


I have implemented mesh readers for SU2 grids and other proprietary grids for my own solver simply by looking at the documentations and trying to get some basic intuition of how things were organized in the file.



Give it a try. It's easier than what some might think.



Here's a documentation of the GAMBIT neutral file format. See if you have the same file format : https://web.stanford.edu/class/me469...mbit_write.pdf
aero_head likes this.

Last edited by aerosayan; December 15, 2020 at 13:13. Reason: grammar
aerosayan is offline   Reply With Quote

Reply


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
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 00:52
How can i read mesh files made with ICEM? I want use them for my own code zmester ANSYS Meshing & Geometry 9 October 11, 2009 07:18
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 18:10


All times are GMT -4. The time now is 04:46.