CFD Online Logo CFD Online URL
Home > Forums > FLUENT

reading gambit mesh files using fortran

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

Like Tree3Likes
  • 2 Post By zonexo
  • 1 Post By sbaffini

LinkBack Thread Tools Display Modes
Old   May 16, 2006, 22:08
Default reading gambit mesh files using fortran
Posts: n/a

i've just started using gambit to generate mesh. i'm writing my code in fortran and i need to read in the xy mesh generated by gambit.

May i know what's the easiest way to do it? currently, it's structured mesh in a single block, although multi-blocks will be used later.

Is there a subroutine available somewhere which i can use directly?

omer musa and Wang Shang like this.
  Reply With Quote

Old   April 27, 2015, 01:38
Default Fortran program reading mesh data in gambit
New Member
Join Date: Apr 2015
Posts: 1
Rep Power: 0
MKFluent is on a distinguished road
at this time, after 8 year, i already have your problem.
Do you find or write any fortran program to reading mesh data from gambit file?
Could you please help me in this topic?
Can i receive the program form you?

with best regards,
MKFluent is offline   Reply With Quote

Old   April 27, 2015, 08:02
Senior Member
sbaffini's Avatar
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 761
Blog Entries: 17
Rep Power: 21
sbaffini will become famous soon enough
I have this matlab script which might help you. It is not really elegant or close to efficient (e.g., sometimes strings are compared character by character instead of as a whole) but handles most practical cases and should be easy to convert in fortran (simply use proper derived types instead of cells).
Attached Files
File Type: txt readmsh.txt (16.8 KB, 49 views)
saeed144 likes this.
sbaffini is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting Fluent mesh files to Gambit neutral files samuelkc ANSYS Meshing & Geometry 7 August 30, 2017 03:54
UDF issue MASOUD Fluent UDF and Scheme Programming 14 December 6, 2012 14:39
snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Native Meshers: snappyHexMesh and Others 2 March 27, 2011 21:11
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
How to control Minximum mesh space? hung FLUENT 7 April 18, 2005 09:38

All times are GMT -4. The time now is 02:00.