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

Reading Data In Fortran

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2011, 22:45
Question Reading Data In Fortran
  #1
Senior Member
 
Ashkan Javadzadegan
Join Date: Sep 2010
Posts: 255
Rep Power: 16
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?

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

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

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).

Do
DoHander 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
Comparison between C/C++ and Fortran? rick Main CFD Forum 45 September 6, 2011 01:52
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
[Commercial meshers] FluentMeshToFoam errorplease help me andycong OpenFOAM Meshing & Mesh Conversion 18 November 5, 2007 17:43
grid data to be read by Fortran code seckin FLUENT 0 April 19, 2003 15:03
reading data from model yusoff CFX 3 March 20, 2001 00:12


All times are GMT -4. The time now is 08:20.