![]() |
How to start a 2D CFD code?
Hi everybody,
I just want to start from scratch of building a 2D/2D-axis NS program which is used in compressible flow. I prefer to use FORTRAN as the developing language. Is there any good reference to start with? Simple will be great! At the moment, I think structured grid is enough for my application. Thanks a lot. Qi |
If you want to write your own Finite Volume code, there's no better book than Blazcek:
http://books.google.com/books?id=IKu...page&q&f=false That explains how to write a FV code from scratch, if you understand that, you'll be well on your way... |
Quote:
Two quick questions: 1. Is it a compressible NS code? 2. Is it non-dimensional or dimensional? Thank you! Qi |
Sorry, I have never actually looked at the CD, so I do not know....but maybe there's a readme on the CD, or you might look at the code and find comments in it?
|
Just look at the continuity equation, if it's \nabla \bf{U} then you know it's incompressible. If they are taking time derivatives of \rho it's compressible.
|
You'll find that most CFD codes are written in a non-dimensional way for conditioning reasons. Very likely the only place you'll run into dimensions is when dealing with chemistry components and even then only in the fluid property evaluations. There are some very specific mathematical reasons for this.
|
Quote:
Just be careful with this, it is not uncommon to name the conservative state vector \bf{U} as well, which then turns out to be (rho, rhou, rhov...) |
| All times are GMT -4. The time now is 18:16. |