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

Writing a 2D CFD code

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 13, 2010, 00:02
Post Writing a 2D CFD code
  #1
Far
Super Moderator
 
Far's Avatar
 
Sijal Ahmed Memon (turboenginner@gmail.com)
Join Date: Mar 2009
Location: Islamabad Pakistan
Posts: 3,905
Blog Entries: 6
Rep Power: 38
Far will become famous soon enoughFar will become famous soon enough
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, 06:02
Default hi
  #2
Senior Member
 
morteza08's Avatar
 
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 159
Rep Power: 7
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, 09:27
Default
  #3
Far
Super Moderator
 
Far's Avatar
 
Sijal Ahmed Memon (turboenginner@gmail.com)
Join Date: Mar 2009
Location: Islamabad Pakistan
Posts: 3,905
Blog Entries: 6
Rep Power: 38
Far will become famous soon enoughFar will become famous soon enough
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, 14:05
Default
  #4
Member
 
ganesh
Join Date: Mar 2009
Posts: 40
Rep Power: 8
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, 14:37
Default
  #5
Far
Super Moderator
 
Far's Avatar
 
Sijal Ahmed Memon (turboenginner@gmail.com)
Join Date: Mar 2009
Location: Islamabad Pakistan
Posts: 3,905
Blog Entries: 6
Rep Power: 38
Far will become famous soon enoughFar will become famous soon enough
Send a message via Skype™ to Far
I too like Fortran 90
Far 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
writing a cfd code kelvin Main CFD Forum 13 October 13, 2005 05:41
A simple CFD code for teaching basic CFD? Christoph Lund Main CFD Forum 13 September 14, 2005 04:36
CFD JOBS and Expected Salary.... Noel Harrison Main CFD Forum 11 November 22, 2000 08:15
CFD Salary CFD Main CFD Forum 15 September 4, 1999 14:04
Commercial CFD code Hanson G. He Main CFD Forum 1 October 15, 1998 08:49


All times are GMT -4. The time now is 20:02.