CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General 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 Search this Thread 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: 15
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: 557
Rep Power: 20
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
Member
 
C
Join Date: Apr 2013
Posts: 37
Rep Power: 12
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
Senior Member
 
Jonas T. Holdeman, Jr.
Join Date: Mar 2009
Location: Knoxville, Tennessee
Posts: 128
Rep Power: 18
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: 15
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 Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFD Design...The CFD Future John C. Chien Main CFD Forum 20 November 19, 2015 23:40
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 03:04
Advice: Career in CFD w/BS Venomous Main CFD Forum 12 April 18, 2002 10:05


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