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

fluent-matlab connection

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 7, 2022, 11:50
Smile fluent-matlab connection
  #1
Senior Member
 
Zese
Join Date: Sep 2013
Posts: 104
Rep Power: 12
zese is on a distinguished road
Dear all,

I am not sure that this is a right place to ask this question but I asked in Mathworks and no-one answered me. I run fluent from matlab by the following command:

system('F:"Program Files""ANSYS Inc"\v195\fluent\ntbin\win64\fluent.exe -gr 2ddp -t4 -i filename.jou');

and In the later sections I need the results of this simulation to be analyzed. for example there are some output velocities which should be analyzed in matlab. When I run the code it run fluent but after starting fluent it goes to other sections without hesitation and doesn't wait for fluent to complete simulation. Do you know how I can order Matlab to wait until results are ready and fluent simulation is completed?

BR
zese is offline   Reply With Quote

Old   July 8, 2022, 01:31
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
you may try to use a trick here:
wait until fluent will create file specified by you, which will be created after simulation is finished

on the other hand you may run Fluent as a server (Fluent AAS). In that case you may control almost everything from matlab
zese likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   July 8, 2022, 01:53
Thumbs up
  #3
Senior Member
 
Zese
Join Date: Sep 2013
Posts: 104
Rep Power: 12
zese is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
you may try to use a trick here:
wait until fluent will create file specified by you, which will be created after simulation is finished

on the other hand you may run Fluent as a server (Fluent AAS). In that case you may control almost everything from matlab
Thank you. It worked
but I found using this command run fluent in batch mode so not need to order matlab to wait

system('F:"Program Files""ANSYS Inc"\v195\fluent\ntbin\win64\fluent.exe -hidden 2ddp -t4 -i filename.jou');

Last edited by zese; July 8, 2022 at 09:33.
zese 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
linking matlab and fluent Nair FLUENT 23 January 12, 2020 18:55
Problem in compiling fluent UDF lunched from MATLAB cfdman10 Fluent UDF and Scheme Programming 16 December 5, 2019 05:32
Connection between Matleb and Ansys fluent julia lebd FLUENT 1 February 5, 2019 19:19
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
problem in using parallel process in fluent 14 aydinkabir88 FLUENT 1 July 10, 2013 02:00


All times are GMT -4. The time now is 03:33.