CFD Online Logo CFD Online URL
Home > Forums > Main CFD Forum

Reading Data In Fortran

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

LinkBack Thread Tools Display Modes
Old   March 6, 2011, 22:45
Question Reading Data In Fortran
Senior Member
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 248
Rep Power: 10
ashtonJ is on a distinguished road
Hi all

I have a question regarding how to read a series of data in Fortran. My data are attached

Means that for z=5.183 and y=0.05, pressure value is 17 and so on.

I would like to read above data in Fortran. Does anybody know how it works?

Attached Images
File Type: jpg Untitled 2.jpg (13.2 KB, 9 views)
ashtonJ is offline   Reply With Quote

Old   March 7, 2011, 10:32
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 13
DoHander is on a distinguished road

typically any programming langage can read/write text files, in your case simply save your Excel file (it looks like Excel to me in your picture) as a text tab delimited file. After this step read a tutorial about I/O operations in Fotran, a simple Google for "fortran read file" will give you a lot of material to read.

I suppose you already have a working Fortran environment (compiler and text editor).

DoHander 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
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 00:52
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
FluentMeshToFoam errorplease help me andycong OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 18 November 5, 2007 17:43
grid data to be read by Fortran code seckin FLUENT 0 April 19, 2003 14:03
reading data from model yusoff CFX 3 March 20, 2001 00:12

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