CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   problem Using Matlab for post processing (https://www.cfd-online.com/Forums/fluent/106654-problem-using-matlab-post-processing.html)

nenazarian September 4, 2012 16:20

problem Using Matlab for post processing
 
Hi

I wrote a function in MATLAB that would open different Case/Data files in a specified format and export the results and close it.
I used a "for" loop that writes a journal for each case and execute fluent with that. The problem that Im having is that is doesnt wait for fluent to export the result before doing the next loop and this means it attempts to open Fluent in all cases all at once.

does anyone know how to fix that? Is there any way to only go to the next "for" if fluent is done exporting and its closed?

thank you in advance for your help


cheers
Negin

nenazarian September 6, 2012 15:00

Any help is appreciated.
I have so many runs to post process and the export function in matlab in giving me a headache.

sbaffini September 6, 2012 15:56

Instead of let Matlab open Fluent and run a journal, let Matlab create a journal which, once read in Fluent, will open all the cases doing the required job for each of them.

nenazarian September 6, 2012 16:41

Wow! I didnt thought of that!

Thanks again paolo

Cheers
Negin


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