|
[Sponsors] |
August 2, 2011, 13:17 |
How to start a 2D CFD code?
|
#1 |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
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 |
|
August 2, 2011, 13:29 |
|
#2 |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
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... |
|
August 2, 2011, 13:38 |
|
#3 | |
New Member
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15 |
Quote:
Two quick questions: 1. Is it a compressible NS code? 2. Is it non-dimensional or dimensional? Thank you! Qi |
||
August 2, 2011, 13:44 |
|
#4 |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
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?
|
|
August 2, 2011, 15:17 |
|
#5 |
New Member
Vincent
Join Date: Jul 2011
Posts: 29
Rep Power: 15 |
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.
|
|
August 2, 2011, 16:05 |
|
#6 |
Member
Join Date: Jul 2011
Location: US
Posts: 39
Rep Power: 15 |
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.
|
|
August 2, 2011, 16:19 |
|
#7 | |
Senior Member
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20 |
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...) |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD Design...The CFD Future | John C. Chien | Main CFD Forum | 20 | November 20, 2015 00:40 |
how can i start writing CFD code? | alirezavatandoust | Main CFD Forum | 5 | October 2, 2009 08:43 |
the best CFD code for women | For the marketers | Main CFD Forum | 17 | August 24, 2006 13:17 |
OOP for CFD code | Jongtae Kim | Main CFD Forum | 26 | October 20, 2000 07:11 |
public CFD Code development | Heinz Wilkening | Main CFD Forum | 38 | March 5, 1999 12:44 |