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

C# vs other programming languages

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2005, 00:29
Default C# vs other programming languages
  #1
Metal
Guest
 
Posts: n/a
Hi Everyone,

Do you think C# can prove a better alternative than C++ or C for CFD?

Moreover, is Matlab good enough to handle CFD?

regards Metal

  Reply With Quote

Old   October 18, 2005, 03:28
Default Re: C# vs other programming languages
  #2
javaid
Guest
 
Posts: n/a
C and C++ are well tested in CFD field. C# is much like Java than C++. MATLAB can be used for CFD and provides interfacing with C/C++ and FORTRAN. It depends on your problem as you need to build your own NS solver using MATLAB functions. You may need to write your own functions too.
  Reply With Quote

Old   October 18, 2005, 03:48
Default Re: C# vs other programming languages
  #3
andy
Guest
 
Posts: n/a
> Do you think C# can prove a better alternative than C++ or C for CFD?

You would have to expand on what better means but it is hard to see any advantages and the disadvantages (platform dependence, speed, lack of existing numerical routines, few CFD people know the language, etc...) look pretty compelling.

> Moreover, is Matlab good enough to handle CFD?

Using a scripting language like Matlab (or Python, Ruby, etc...) is a well established way to go about researching numerical methods/schemes within CFD programs. It makes parametric changes easy and the generation of subsequent plots and movies. However, apart from the controlling routines, most of the low level number crunching routines are usually written in languages like C or Fortran to avoid the speed penalty of an interpretted language. Matlab effectively provides the packaging. Writing all the statements of a 3D CFD code in the Matlab language would not be wise.
  Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
A book for a beginner wanting to learn programming frank Main CFD Forum 9 May 12, 2014 23:15
OpenFoam programming prapanj OpenFOAM 10 March 18, 2010 07:23
Programming in OpenFOAM vinu OpenFOAM 2 July 11, 2009 10:16
CG/GPU/brook programming language - FLUENT/CFX Quick Main CFD Forum 0 April 3, 2006 18:32
new CFD Programming Forum Thinker Main CFD Forum 14 November 19, 2002 16:03


All times are GMT -4. The time now is 00:50.