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

problems running fluent through matlab

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2013, 20:24
Default problems running fluent through matlab
  #1
New Member
 
omar
Join Date: Apr 2010
Posts: 28
Rep Power: 16
galapago is on a distinguished road
Hi everybody

I have some problems running fluent through matlab, in my laptop (serial processing) i used this instruction and i could run Fluent v14 without problems

!fluent 3ddp -g -i C:\Users\omar\Documents\MATLAB\alggambit\algorflue nt.jou

but now when i'm trying to do the same in a parallel process in the computer of a lab (with fluent 6.3.26, ansys 12.1, ansys 13 and ansys 14 installed)fluent open, but in 6.3.26 version. I deleted this version but still appearing(some weird).

in enviromental variables i put this path
C:\program files\ansys inc\v140\fluent\ntbin\win 64
like in my laptop, but in this computer i think that i need to change a parameter o maybe a path to mark that when I execute my matlab code i be abble to open fluent v14 , the problem is that i dont know where is this place or what i can do to solve it?

thanks a lot friends i hope you could help me

thanks in advance

galapago is offline   Reply With Quote

Old   October 10, 2013, 10:20
Default
  #2
New Member
 
Sorin Munteanu
Join Date: Apr 2013
Posts: 27
Rep Power: 14
Sorin is on a distinguished road
Hi galapago,

It might be the PATH environment variable inside Matlab or at system level that it is set-up to the FLUENT 6.3.26.

Do you have the same problem when starting Fluent in the command line?

I would suggest launching Fluent in server mode instead of launching it from Matlab and then from Matla connect to Fluent and script Fluent from Matlab.

instead of executing from Matlab:

"fluent 3ddp -g -i C:/Users/omar/Documents/MATLAB/alggambit/algorfluent.jou"

do this:
1.execute Fluent from command line
fluent 3ddp -g -aas
2. Fluent will generate a file named aaS_FluentId.txt
3. start Matlab and connect to Fluent usinf Fluent generated file
fluent = actxserver(‘ANSYS.CoFluentUnit.1′);
fid=fopen(‘aaS_FluentId.txt’,'r’)
fluentkey=fscanf(fid,’%s’)
fclose(fid)
fluent.ConnectToServer (fluentkey)
tui=fluent.getSchemeControllerInstance();

4. execute your Matlab equivalent of algorfluent.jou from Matlab

To generate the Matlab equivalent of a line in algorfluent.jou use the following pattern:

if stringfluentCommand is the line in algorfluent.jou, the equivalent line in Matlab will be:
tui.DoMenuCommandToString(stringFluentCommand)


for example the following journal script in Fluent

rcd fluentcasedata
solve it 10
wcd fluentcasedata_saved



will have the following equivalent in Matlab:

tui.DoMenuCommandToString('rcd fluentcasedata')
rcd fluentcasedata('solve it 10')
tui.DoMenuCommandToString('wcd fluentcasedata_saved')


Thank you

Sorin
Sorin 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
force to wait MATLAB for running parallel fluent in batch mode a.latifi Main CFD Forum 1 May 9, 2013 17:44
Creating UDF file in MATLAB for Fluent ppa381 FLUENT 0 July 13, 2009 15:33
Statically Compiling OpenFOAM Issues herzfeldd OpenFOAM Installation 21 January 6, 2009 10:38
Problems in lauching FLUENT Lourival FLUENT 3 January 16, 2008 17:48
FLUENT 5.2.3 running on PIII 733 Burley Wang FLUENT 7 April 19, 2000 07:03


All times are GMT -4. The time now is 13:32.