|
[Sponsors] |
May 14, 2013, 15:22 |
fluent-matlab parallel
|
#1 |
New Member
omar
Join Date: Apr 2010
Posts: 27
Rep Power: 16 |
Hi guys
I'm trying to run fluent through matlab, i use this command !fluent 2ddp -g -i C:\Users\omar\Documents\MATLAB\alggambit\algorflue nt.jou but i don't know how to run in parallel mmode, i found that "tx" is the command, where the x is the number of processors, but where is the possition of this text in the preceding command is after 2ddp? is after -g? or is after -i? thanks in advance guys |
|
May 15, 2013, 04:03 |
|
#2 |
New Member
Join Date: Oct 2012
Posts: 4
Rep Power: 13 |
galapago,
You can also run system commands (call Fluent) with the Matlab function system('command') where 'command' is a string. The advantage of the system() function is that we can build the command string from variables using concatenation. For your case, to run with 4 cpus, you could use (noting the order of the flags doesn't really matter) system('fluent 2ddp -g -t4 -i C:\Users\omar\Documents\MATLAB\alggambit\algorflue nt.jou') The more general way is store all the relevant information in variables. Our Matlab function/script could then change them as required (say in a loop running many jobs), eg fluentExe = 'fluent '; %the fluent executable path. %No path required if on system path dims = '2d'; precision = 'dp'; graphics = ' '; % -g for no graphics. Space for graphics ncpu = 4; %number of cores to use journals = {'c:\rabbit\myrabbitsimulation.jou'; 'c:\rabbit\buggsbunnyteethsimulation.jou'; 'c:\dog\roverbarkingsimulation.jou'}; for ii = 1:length(journals) system( [ fluentExe,' ',dims,precision,' ',graphics,... '-t',num2str(ncpu),' ','-i ',journals{ii} ] ); end Last edited by slug; May 15, 2013 at 04:44. |
|
May 15, 2013, 19:08 |
|
#3 |
New Member
omar
Join Date: Apr 2010
Posts: 27
Rep Power: 16 |
thanks a lot Slug
i will try regards |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to link Fluent and MATLAB and exchange data? | z701531118 | FLUENT | 3 | October 9, 2013 14:26 |
Problem with Parallel Fluent | mohamed_ | FLUENT | 1 | December 28, 2012 11:23 |
Fluent Parallel Error | Will Humber | FLUENT | 2 | April 3, 2008 14:15 |
Fluent parallel | poovanna | FLUENT | 0 | March 23, 2007 23:22 |
error parallel fluent session | Diet | FLUENT | 2 | January 27, 2005 12:31 |