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

CFD Coding

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By walli
  • 1 Post By valgrinda

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2010, 12:12
Unhappy CFD Coding
  #1
New Member
 
SJ
Join Date: Jan 2010
Posts: 2
Rep Power: 0
easy_astronaut is on a distinguished road
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.
easy_astronaut is offline   Reply With Quote

Old   June 13, 2010, 14:57
Default
  #2
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 20
DoHander is on a distinguished road
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
DoHander is offline   Reply With Quote

Old   June 14, 2010, 00:54
Default Hi
  #3
New Member
 
Dhileep
Join Date: Apr 2010
Posts: 10
Rep Power: 16
Dhileep T K is on a distinguished road
I suggest MATLAB. Post processing will be easy.
Dhileep T K is offline   Reply With Quote

Old   June 14, 2010, 02:52
Default
  #4
Senior Member
 
Cean
Join Date: Feb 2010
Posts: 128
Rep Power: 16
shirazbj is on a distinguished road
like to use gmsh for post processing. It's free and easy.
shirazbj is offline   Reply With Quote

Old   June 14, 2010, 12:45
Default CFD coding
  #5
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19
valgrinda is on a distinguished road
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
valgrinda is offline   Reply With Quote

Old   June 14, 2010, 13:24
Default
  #6
New Member
 
Join Date: May 2009
Posts: 28
Rep Power: 17
walli is on a distinguished road
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.
lakeat likes this.
walli is offline   Reply With Quote

Old   June 14, 2010, 14:05
Default Existing C++ Code
  #7
Super Moderator
 
Hans Bihs
Join Date: Jun 2009
Location: Trondheim, Norway
Posts: 403
Rep Power: 19
valgrinda is on a distinguished road
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
lakeat likes this.
valgrinda is offline   Reply With Quote

Reply

Tags
cfd, code, language


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 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


All times are GMT -4. The time now is 07:10.