CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Books about writing a cfd code in Fortran (http://www.cfd-online.com/Forums/main/108044-books-about-writing-cfd-code-fortran.html)

olsson October 13, 2012 03:45

Books about writing a cfd code in Fortran
 
Hi, i'm new in the field of cfd, and i want to do something about it.
I'd like to write a cfd code in fortran, starting from a simple case.
Could someone recommend me a good book about it?
Thanks.

nikola_m October 13, 2012 12:34

Do you have any preferred field of application? That may help a lot.

Anyway, there are a couple of standard references people point to:
  1. S.Patankar - Numerical Heat Transfer and Fluid Flow
  2. J.H.Ferziger, M.Peric - Computational Methods for Fluidd Dynamics
  3. H.K.Versteeg, W.Malalasekera - An Introduction to Computational Fluid Dynamics

There are many other good references, but people use these for incompressible viscous flow with Finite Volume Method.

Good alternative is to read some PhD thesis, there is a lot of interesting review material in these...

There are many other alternatives, depending on what you want to do. Maybe you want to approach CFD from Finite Element Method, or Lattice Boltzman Method, or maybe you are interested in high order methods like Spectral Methods?

Give us more info and I'll be more precise.

olsson October 14, 2012 05:58

Thank you for your answer,
however, since I am new in this field, I would like to begin by the simplest methods, which I believe are the finite elements.

Anyway, I already knew the texts that you have recommended, and they are excellent from the point of view of theory, in particular the second, but I wanted something more specific that would help me to program in Fortran.

thanks

nikola_m October 14, 2012 12:57

I had the same problem when I started out - because I was working on my own.

There's nothing better for learning Fortran programming for CFD than finding some source code and going trough it line by line. Ferziger & Peric book has code collection that goes with it, maybe this is the right point to start (so I'm still in finite volume method). I have recently made a little upgrade of the CAFFA code and posted it here , hoping it will be useful for learning as the original CAFFA code was.

What worked for me also is this (this is really powerful approach): Go trough some Journal of Computational Physics paper's from the 80's, especially late 80's, and first half of 90's. The methods back then were described in a much more verbose way, implementing the code is pretty straightforward in that case. Both in the case of finite element and finite volume. This is also true for other journals in this field, but this one is my favorite.

vinayender October 15, 2012 02:57

References..
 
Refer "Computational Fluid Dynamics" by John D Anderson.
here you can get very good guidence to start programing in CFD.
Classical Quasi 1D Convergent-Divergent Problem is also explained.

Also, if you want to write Desity based solvers for complete N-S equations,
please refer
1) "Computational Gas Dynamics" by Culbert B. Laney
2) "Numerical Computation of Internal and External Flows: The Fundamentals of Computational Fluid Dynamics" by Charles Hirsch
3) "Remian Solver" by Toro

olsson October 15, 2012 10:04

thanks for your help, I will begin to document the books that you have recommended to me and I will let you know.

mb.pejvak October 15, 2012 22:46

Dear Olsson;

between the recommended books, I think "H.K.Versteeg, W.Malalasekera - An Introduction to Computational Fluid Dynamics" is suitable for the one who wants to start CFD specially if you plan to work on finite volume method. it is very simple and clarify what is said with very simple and good example. this is my experience and I hope it will be useful.

leflix October 17, 2012 16:26

Quote:

Originally Posted by nikola_m (Post 386432)
Do you have any preferred field of application? That may help a lot.

Anyway, there are a couple of standard references people point to:
  1. S.Patankar - Numerical Heat Transfer and Fluid Flow
  2. J.H.Ferziger, M.Peric - Computational Methods for Fluidd Dynamics
  3. H.K.Versteeg, W.Malalasekera - An Introduction to Computational Fluid Dynamics

Nikola is right !! there is nothing better than these 3 books about FVM
and as Nikola said with book of Peric you have a collection of good codes which should help you to understand how to code an efficient FVM solver


All times are GMT -4. The time now is 19:39.