CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

fluent-matlab parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2013, 15:22
Default fluent-matlab parallel
  #1
New Member
 
omar
Join Date: Apr 2010
Posts: 27
Rep Power: 16
galapago is on a distinguished road
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
galapago is offline   Reply With Quote

Old   May 15, 2013, 04:03
Default
  #2
New Member
 
Join Date: Oct 2012
Posts: 4
Rep Power: 13
slug is on a distinguished road
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.
slug is offline   Reply With Quote

Old   May 15, 2013, 19:08
Default
  #3
New Member
 
omar
Join Date: Apr 2010
Posts: 27
Rep Power: 16
galapago is on a distinguished road
thanks a lot Slug

i will try

regards
galapago is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 10:29.