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

Give me some advice CFD in Fortran code or Matlab code.

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 28, 2013, 02:10
Smile Give me some advice CFD in Fortran code or Matlab code.
  #1
New Member
 
Nguyen
Join Date: Dec 2010
Posts: 21
Rep Power: 6
tringuyenttt is on a distinguished road
Dear all,
I am in a divided mind using the Matlab or Fortran code in CFD, i can use the Matlab code but not good. In Fortran code i just can just understand the code program and write a simple problem. Please give me advice? What is the advantaged and disadvantaged both of them.
Thanks.
tringuyenttt is offline   Reply With Quote

Old   May 28, 2013, 03:26
Default
  #2
Senior Member
 
cfdnewbie
Join Date: Mar 2010
Posts: 551
Rep Power: 11
cfdnewbie is on a distinguished road
Matlab is great for doing 1D problems and developing new schemes, Fortran is the way to go if you want 2D and 3D production codes.
cfdnewbie is offline   Reply With Quote

Old   May 28, 2013, 06:34
Default
  #3
New Member
 
C
Join Date: Apr 2013
Posts: 9
Rep Power: 4
whizkid is on a distinguished road
fortran is way faster and robust than matlab i guess...
whizkid is offline   Reply With Quote

Old   May 28, 2013, 09:46
Default
  #4
Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 90
Rep Power: 8
Jonas Holdeman is on a distinguished road
It sounds like you are in the learning process. At this stage I would recommend Matlab. Matlab has a good integrated development environment, integrating editing, execution, debugging, and graphics. You can enter a change to your code, save it with the click of a mouse, and execute it and see results immediately. You don't have to waste time compiling, linking into an executable, running the code and post-processing results.

Matlab can be slow if you program with nested do-loops Fortran style, but Matlab has features that can reduce the number of do-loops. You use explicit, interpreted Matlab more for control with the grunt-work done by compiled Matlab internals. If you are running problems with a few million degrees-of-freedom, then Fortran would be faster, but if you are developing test code with perhaps a hundred thousand DOFs, the Matlab is fast enough.

When our have your ideas working in code, you can translate to Fortran. You can always fall back on the Matlab code as a benchmark to check out your Fortran. But the issue is not 1D, 2D, or 3D, but the number of variables you need to solve for.
Jonas Holdeman is offline   Reply With Quote

Old   May 29, 2013, 08:32
Smile
  #5
New Member
 
Nguyen
Join Date: Dec 2010
Posts: 21
Rep Power: 6
tringuyenttt is on a distinguished road
Hi alls,
Thanks so much for your guide. I will try.
tringuyenttt 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
Fortran vs Matlab Help idee Main CFD Forum 3 July 2, 2008 15:05
CFD Code Choice and General Advice Alex Pope Main CFD Forum 26 April 25, 2007 11:54
To avoid Grid generation for FORTRAN CFD CODE Stephen Main CFD Forum 4 January 30, 2006 04:04
Advice: Career in CFD w/BS Venomous Main CFD Forum 12 April 18, 2002 10:05
CFD Design...The CFD Future John C. Chien Main CFD Forum 19 October 6, 1999 11:57


All times are GMT -4. The time now is 19:36.