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

reading gambit mesh files using fortran

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

Like Tree1Likes
  • 1 Post By zonexo

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

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?

thanks
omer musa likes this.
  Reply With Quote

Old   April 27, 2015, 01:38
Default Fortran program reading mesh data in gambit
  #2
New Member
 
Mina
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,
Mina
MKFluent is offline   Reply With Quote

Old   April 27, 2015, 08:02
Default
  #3
Senior Member
 
sbaffini's Avatar
 
Paolo Lampitella
Join Date: Mar 2009
Location: Italy
Posts: 518
Blog Entries: 14
Rep Power: 17
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, 4 views)
sbaffini is offline   Reply With Quote

Reply

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 5 July 24, 2013 08:02
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 01:02.