|
[Sponsors] |
October 13, 2010, 01:02 |
Writing a 2D CFD code
|
#1 |
Senior Member
|
hello every body
today I got class project from peric book to write the 2D CFD code for simple convection conduction equation. I want to ask that should I do it in FORTRAN of C++. As this stage selecting any programing language is easy but after it would be difficult to learn another language. So please advise me where to start. Best Regards |
|
October 14, 2010, 07:02 |
hi
|
#2 |
Senior Member
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 161
Rep Power: 16 |
Hi dear
As an engineer....I recommend you to choose Fortran... set aside the faults and shortage of these two languages, many scientific and engineering codes are written in fortran..i mean you can simply search for solving an engineering problem in net or books and find the problem.... nearly all of engineers and professors work with fortran and consulting is easier in this case... this is my opinion |
|
October 14, 2010, 15:05 |
|
#4 |
Member
ganesh
Join Date: Mar 2009
Posts: 40
Rep Power: 17 |
Dear Far,
C vs Fortran for CFD is mostly an annual debate topic on CFD Online over the years. While reaching a consensus on this might be a difficult task, I agree with morteza's view that most legacy codes and software are in F90 and that codes from books are also in Fortran. While the choice of programming language is debatable, my personal opinion is that the algorithm is what mainly counts and programming is just a means to implement the algorithm on a computer. Given that F90 has incorporated a lot of C--like features, my personal preference is F90, although you should go with the language that you are most comfortable handling with; after all its your code. Regards, Ganesh |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
CFD Salary | CFD | Main CFD Forum | 17 | January 3, 2017 18:09 |
writing a cfd code | kelvin | Main CFD Forum | 13 | October 13, 2005 06:41 |
A simple CFD code for teaching basic CFD? | Christoph Lund | Main CFD Forum | 13 | September 14, 2005 05:36 |
CFD JOBS and Expected Salary.... | Noel Harrison | Main CFD Forum | 11 | November 22, 2000 08:15 |
Commercial CFD code | Hanson G. He | Main CFD Forum | 1 | October 15, 1998 09:49 |