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

Writing a 2D CFD code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 13, 2010, 01:02
Post Writing a 2D CFD code
  #1
Far
Senior Member
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,558
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
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
Far is offline   Reply With Quote

Old   October 14, 2010, 07:02
Default hi
  #2
Senior Member
 
morteza08's Avatar
 
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 161
Rep Power: 16
morteza08 is on a distinguished road
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
morteza08 is offline   Reply With Quote

Old   October 14, 2010, 10:27
Default
  #3
Far
Senior Member
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,558
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
Yeah you are right. my inclination is also towards FORTRAN. But due to C craze I was confused. Thanks.

Regards
Far is offline   Reply With Quote

Old   October 14, 2010, 15:05
Default
  #4
Member
 
ganesh
Join Date: Mar 2009
Posts: 40
Rep Power: 17
ganesh is on a distinguished road
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
ganesh is offline   Reply With Quote

Old   October 14, 2010, 15:37
Default
  #5
Far
Senior Member
 
Sijal
Join Date: Mar 2009
Location: Islamabad
Posts: 4,558
Blog Entries: 6
Rep Power: 54
Far has a spectacular aura aboutFar has a spectacular aura about
Send a message via Skype™ to Far
I too like Fortran 90
Far is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 11:39.