CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Reading Data In Fortran (https://www.cfd-online.com/Forums/main/85773-reading-data-fortran.html)

ashtonJ March 6, 2011 21:45

Reading Data In Fortran
 
1 Attachment(s)
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

DoHander March 7, 2011 09:32

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


All times are GMT -4. The time now is 17:09.