|
[Sponsors] |
June 13, 2010, 12:12 |
CFD Coding
|
#1 |
New Member
SJ
Join Date: Jan 2010
Posts: 2
Rep Power: 0 |
Hi,
I'm an Aeronautical Engineer and keen to write a CFD code. But unluckily, the biggest question in my mind is WHERE TO START? I know the math, but don't know the tools. So can anyone tell me which tool I should use to write a CFD code? Whether it's C or FORTRAN or anything else. Also, in which language the famous CFD tools like FLUENT and CFX are written? I'll be very much thankful to you for an answer. Thanks, Sahaj. |
|
June 13, 2010, 14:57 |
|
#2 |
Senior Member
Join Date: Nov 2009
Posts: 411
Rep Power: 20 |
Commercial CFD codes (like Fluent or CFX) are usually developed in C or C++. However if you want to develop your own CFD code probably Fortran 95/2003 is a better choice.
Do |
|
June 14, 2010, 00:54 |
Hi
|
#3 |
New Member
Dhileep
Join Date: Apr 2010
Posts: 10
Rep Power: 16 |
I suggest MATLAB. Post processing will be easy.
|
|
June 14, 2010, 02:52 |
|
#4 |
Senior Member
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16 |
like to use gmsh for post processing. It's free and easy.
|
|
June 14, 2010, 12:45 |
CFD coding
|
#5 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 |
Hei,
when you plan to write a small cfd program with few lines of code, Fortran is ok. When you have a large project in mind and think about working with the program for a long time, you should consider C++. Then it is much easier to add to the code, to maintain it and have more than one developer to work with it. Both languages have support for MPI, which is needed for efficient parallel computation. Regards Hans |
|
June 14, 2010, 13:24 |
|
#6 |
New Member
Join Date: May 2009
Posts: 28
Rep Power: 17 |
I would suggest to use an existing library for the mesh handling, shape functions, linear algebra and so on, because implementing this can be very time-consuming. C++ is a good choice, since you can program with a low overhead and reuse code easily. You might want to have a look at different projects, e.g.
http://dune-project.org/ http://dealii.org/ http://download.gna.org/getfem/html/homepage/ http://trilinos.sandia.gov/ http://www.fenics.org/wiki/FEniCS_Project ... there are many more, these are just the ones that automatically came to my mind. |
|
June 14, 2010, 14:05 |
Existing C++ Code
|
#7 |
Super Moderator
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19 |
Another, very interesting project can be found here:
http://wissrech.iam.uni-bonn.de/rese...3DGP/index.htm The C++ source code can be downloaded. They use finite differences and the MPI library for parallelization. Regards Hans |
|
Tags |
cfd, code, language |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD Wiki - We Need More Help | Jonas Larsson | Main CFD Forum | 13 | September 13, 2005 18:36 |
CFD job and salary? | Mingyong | Main CFD Forum | 11 | January 2, 2001 07:15 |
ASME CFD Symposium, Atlanta, July 2001 | Chris R. Kleijn | Main CFD Forum | 0 | August 21, 2000 05:49 |
Since Last June | John C. Chien | Main CFD Forum | 3 | July 12, 1999 10:38 |
Which is better to develop in-house CFD code or to buy a available CFD package. | Tareq Al-shaalan | Main CFD Forum | 10 | June 13, 1999 00:27 |