|
[Sponsors] |
March 26, 2005, 00:31 |
Problem with Matlab
|
#1 |
Guest
Posts: n/a
|
I have written several codes using Matlab. I written a code in explicit form, and I found that the results seems to deviate from the code written in other languages, but the accuracy is still acceptable. However, when I modify the codes to implicit form for shock capturing, the code just blown out. And in some other cases, it spent more iterations compare to other languages.
May I know what is the problem? Should I use Matlab to write my CFD code? Please help to clear my great doubt. Thanks a lot. Havana |
|
March 26, 2005, 05:51 |
Re: Problem with Matlab
|
#2 |
Guest
Posts: n/a
|
I think Fortran is more suitalbe for Engineering calculation. But if the accuracy is in the range of tolerance, it should be ok with matlab.
|
|
March 27, 2005, 16:28 |
Re: Problem with Matlab
|
#3 |
Guest
Posts: n/a
|
Hi i already write CFD codes using Qbasic,Fortran77,Matlab6,Fortran90,and Visual basic 6,from my little experience in CFD fortran 90 is the most effective and rapid one. if you need any help contact at omrkhairy75@yahoo.com have a good luck khairy-Egypt
|
|
March 28, 2005, 05:19 |
Re: Problem with Matlab
|
#4 |
Guest
Posts: n/a
|
So did you face the same problem as I do when using Matlab?
|
|
March 28, 2005, 15:43 |
Re: Problem with Matlab
|
#5 |
Guest
Posts: n/a
|
My advice (been there, done that):
Use MATLAB to prototype your code. Then rewrite your solver in C/C++/FORTRAN/Fortran. Connect to it via Matlab's excellent MEX interface, so you can pre- and post-process in MATLAB. Finally, divorce yourself from MATLAB entirely. I wrote C++ classes to emulate the MATLAB data structures, using well known (and fast) FORTRAN underneath to do the matrix manipulation. Converting from MATLAB to C++ was quite simple. |
|
March 28, 2005, 21:20 |
Re: Problem with Matlab
|
#6 |
Guest
Posts: n/a
|
Matlab code should work fine like anyother code as long as you do not have problems of memory. Check for memory problems and also check your code
|
|
March 29, 2005, 00:19 |
Re: Problem with Matlab
|
#7 |
Guest
Posts: n/a
|
I know this may be hard to believe...but perhaps you have a bug.....
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem with interFoam; Wave/wiggle alpha1 behavior | JonW | OpenFOAM | 10 | February 4, 2023 08:27 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
Problem in implementing cht | tilek | CFX | 3 | May 8, 2011 09:39 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |