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

CFD and programming

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   March 20, 2009, 22:39
Default CFD and programming
  #1
Member
 
Join Date: Mar 2009
Posts: 62
Rep Power: 17
RenardP is on a distinguished road
Hello,

I would like to see your opinions about choosing a programming language for CFD.

I think that for simple 1D application a language like Matlab, Maple or Mathematica can be used as a starting point, after all when you learn CFD you want to test algorithms and not to became a professional programmer. Same considerations can be applied to the new "managed" languages C# ...

For "simple" 2D and 3D applications any compiled language (C/C++, Fortran ...) that allows you to use MPI or OpenMP will do.

In the actual stage of computer development I don't think we can use an interpreted language for large applications. Sure the companies that sold Matlab, Maple or Mathematica will claim their software can use efficiently the new multi core architectures. But I ask, has anyone tried to implement for example in Matlab a large CFD code ( a small 2D application can easily have more then 10000 lines of code) ?

An advanced CFD application will actually use a combination of interpreted and compiled code in order to remain flexible.

What do you think of combinations like Python and C/C++ (Fortran) or (my favorite) Ruby and C/C++ ?
RenardP is offline   Reply With Quote

 


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
Programming language for ICEM CFD? Michael B CFX 2 January 11, 2007 09:06
Programming knowledges for CFD users Everton Main CFD Forum 3 September 7, 2006 07:09
Programming in CFD Lam Main CFD Forum 7 May 27, 2004 05:12
new CFD Programming Forum Thinker Main CFD Forum 14 November 19, 2002 16:03
Where do we go from here? CFD in 2001 John C. Chien Main CFD Forum 36 January 24, 2001 21:10


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