CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

How to start a 2D CFD code?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By cfdnewbie

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2011, 13:17
Post How to start a 2D CFD code?
  #1
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15
entropies is on a distinguished road
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
entropies is offline   Reply With Quote

Old   August 2, 2011, 13:29
Default
  #2
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
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...
entropies likes this.
cfdnewbie is offline   Reply With Quote

Old   August 2, 2011, 13:38
Default
  #3
New Member
 
Qi Guan
Join Date: Aug 2011
Posts: 27
Rep Power: 15
entropies is on a distinguished road
Quote:
Originally Posted by cfdnewbie View Post
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...
I just got Blazek's book from library last week. I found out there is already some 2d programs attached in the CD-ROM.

Two quick questions:
1. Is it a compressible NS code?
2. Is it non-dimensional or dimensional?

Thank you!
Qi
entropies is offline   Reply With Quote

Old   August 2, 2011, 13:44
Default
  #4
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
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?
cfdnewbie is offline   Reply With Quote

Old   August 2, 2011, 15:17
Default
  #5
New Member
 
Vincent
Join Date: Jul 2011
Posts: 29
Rep Power: 15
VincentD is on a distinguished road
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.
VincentD is offline   Reply With Quote

Old   August 2, 2011, 16:05
Default
  #6
Member
 
Join Date: Jul 2011
Location: US
Posts: 39
Rep Power: 15
Docfreezzzz is on a distinguished road
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.
Docfreezzzz is offline   Reply With Quote

Old   August 2, 2011, 16:19
Default
  #7
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 557
Rep Power: 20
cfdnewbie is on a distinguished road
Quote:
Originally Posted by VincentD View Post
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.

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...)
cfdnewbie is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 21:26.