CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   Learning Fortran for CFD (

Simon October 12, 2003 07:01

Learning Fortran for CFD
I apologise if this is off topic, but..

I wish to learn Fortran to develop my own CFD codes (initially something simple like 2D incompressible Navier Stokes). I'd be grateful for recommendations for good learning resources (books, online tutorials etc). I have spent some time searching the archives, and on the web, but there is a huge amount of info available to go through.

I was going to use the latest compiler from Intel, has anyone any experience with this, or recommendations of their own ?

Thank you, Simon.

Lucas Rainer October 13, 2003 02:51

Re: Learning Fortran for CFD

Don't bother with Fortran, it had its time in the CFD industry. Opt for c++ instead. Most commercial codes are heading in this direction in any way! Dont waste your time on the Fortran relic.

Simon October 13, 2003 06:48

Re: Learning Fortran for CFD

Thank you for your answer, much appreciated. I haven't any background in C, but some in F77. I'm shortly about to start an MSC in CFD and wish to develop my understanding by writing my own code. The Uni staff all use Fortran, and most if not all examples of code written for CFD that I have seen are in Fortran so I guess I'll have to use Fortran too. It's interesting what you say about commercial codes moving towards C++ though, I'll keep an eye on it.



Ag Gaire. October 13, 2003 07:04

Re: Learning Fortran for CFD
Yes, commercial codes use C++, but in general, then also write very generic codes. As far as I am aware, alot of very serious research is done using Fortran. Also, the language you use is, in my opinion, irrelevant from a learning point of view. You can pick up a language in a matter of weeks.

Simon October 13, 2003 07:11

Re: Learning Fortran for CFD
Thanks Ag, The feedback I've been getting so far suggests that a lot of people out there are using Fortran, so I guess I'll follow their lead !


Peter Attar October 13, 2003 09:26

Re: Learning Fortran for CFD
Fortran is fine for CFD. However I strongly suggest you learn Fortran 90 as it is a much more modern language than Fortran 77. A good beginning book is by Lahey and others(I forgot the other authors.) As fas a the Intel compiler goes I've used the free for non commercial use Linux Intel compiler and it produces very fast code. However it's debugging compiler options still leave a little bit to be desired. I usually debug my code using another compiler and then compile the "production" code using the Intel compiler.

DrG October 15, 2003 10:00

Re: Learning Fortran for CFD
Go head and learn Fortran. it is the best language for CFD. a lot of online material posed in F77 (like numerical recipies).

All times are GMT -4. The time now is 05:07.