|
[Sponsors] |
July 9, 2009, 02:33 |
Programming for CFD
|
#1 |
Senior Member
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 17 |
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 |
|
July 9, 2009, 04:35 |
|
#2 |
Senior Member
N/A
Join Date: Mar 2009
Posts: 189
Rep Power: 17 |
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.
|
|
July 10, 2009, 01:57 |
|
#3 |
Senior Member
ATM
Join Date: May 2009
Location: United States
Posts: 104
Rep Power: 17 |
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 |
|
July 10, 2009, 02:08 |
|
#4 |
Senior Member
N/A
Join Date: Mar 2009
Posts: 189
Rep Power: 17 |
Front end is the GUI/ text mode for you to interact with the main solver. For those parts python may be a better option.
|
|
July 10, 2009, 02:32 |
|
#5 |
New Member
Join Date: Jun 2009
Posts: 10
Rep Power: 17 |
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++ .
|
|
September 8, 2009, 12:03 |
C/C++ vs. FROTRAN
|
#6 |
Senior Member
|
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 |
|
September 8, 2009, 13:21 |
|
#7 |
New Member
Join Date: Mar 2009
Posts: 11
Rep Power: 17 |
If you're a fortran programmer stick to what you know....
|
|
September 9, 2009, 02:48 |
FORTRAN vs. C/C++
|
#8 |
Senior Member
|
Thanx john,
i will stick to FORTRAN. regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A book for a beginner wanting to learn programming | frank | Main CFD Forum | 9 | May 13, 2014 00:15 |
OpenFoam programming | prapanj | OpenFOAM | 10 | March 18, 2010 08:23 |
Programming in OpenFOAM | vinu | OpenFOAM | 2 | July 11, 2009 11:16 |
Programming in CFD | Lam | Main CFD Forum | 7 | May 27, 2004 06:12 |
new CFD Programming Forum | Thinker | Main CFD Forum | 14 | November 19, 2002 17:03 |