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

Programming for CFD

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 9, 2009, 01:33
Default Programming for CFD
  #1
Senior Member
 
atmcfd's Avatar
 
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 8
atmcfd is on a distinguished road
hello everyone...i`m an undergraduate student and i`m jus beginnning to appreciate CFD.in the due course of time i realize that i may have to write a CFD code myself.. now my dilemma is,what programming language shud i learn?
i`ve seen that matlab,fortran etc. r especially easy to program;but only for scientific applications.i need to learn a language that gives me equal freedom in both scientific programming as well as pure computer science applications.,but with relative ease in coding compared to C++,C or java. is there any package like that? ive heard that PYTHON has such capabilities, but i`m not sure.ur comments wil be appreciated.

thanks n advance

atm
atmcfd is offline   Reply With Quote

Old   July 9, 2009, 03:35
Default
  #2
Senior Member
 
N/A
Join Date: Mar 2009
Posts: 188
Rep Power: 8
harishg is on a distinguished road
Python is an interpreter and you would not want to use it to write your core CFD codes. It would be better to you use C++, if you are interested in writing both numerical codes and non numerical related applications. You can always use python for the front end.
harishg is offline   Reply With Quote

Old   July 10, 2009, 00:57
Default
  #3
Senior Member
 
atmcfd's Avatar
 
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 8
atmcfd is on a distinguished road
thank u harish.... that was useful.but can u pls explain what s meant by "front end"?and in what way does C++ differ from Python.. i am not aware of it.

thanks in advance.
atm
atmcfd is offline   Reply With Quote

Old   July 10, 2009, 01:08
Default
  #4
Senior Member
 
N/A
Join Date: Mar 2009
Posts: 188
Rep Power: 8
harishg is on a distinguished road
Front end is the GUI/ text mode for you to interact with the main solver. For those parts python may be a better option.
harishg is offline   Reply With Quote

Old   July 10, 2009, 01:32
Default
  #5
New Member
 
Join Date: Jun 2009
Posts: 10
Rep Power: 8
soggy316 is on a distinguished road
C/C++ is the best way to go for coding in your solver. Once you have the data in hand, you can easily use any number of tools or even develop your own using a "Visual" programming language. But do make the basic code in C/C++ .
soggy316 is offline   Reply With Quote

Old   September 8, 2009, 11:03
Default C/C++ vs. FROTRAN
  #6
Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 84
Rep Power: 7
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Hi soggy,

Why do you insist on C/C++? Could you please compare it to FORTRAN? I'm a fortran programmer and have little knowledge of C, I have always wondered about changing to C/C++ but never heard of any convincing facts.

Thanx
aerospain is offline   Reply With Quote

Old   September 8, 2009, 12:21
Default
  #7
New Member
 
Join Date: Mar 2009
Posts: 11
Rep Power: 8
johndorian is on a distinguished road
If you're a fortran programmer stick to what you know....
johndorian is offline   Reply With Quote

Old   September 9, 2009, 01:48
Default FORTRAN vs. C/C++
  #8
Member
 
aerospain
Join Date: Sep 2009
Location: Madrid, Spain
Posts: 84
Rep Power: 7
aerospain is on a distinguished road
Send a message via Skype™ to aerospain
Thanx john,

i will stick to FORTRAN.

regards
aerospain is offline   Reply With Quote

Reply

Thread Tools
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 On
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 08:23
Programming in OpenFOAM vinu OpenFOAM 2 July 11, 2009 10:16
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 17:03


All times are GMT -4. The time now is 23:29.