|
[Sponsors] |
October 14, 2019, 17:08 |
Matlab-Fluent Interfacing
|
#1 |
New Member
Amitav tikadar
Join Date: Jul 2017
Location: Atlanta
Posts: 14
Rep Power: 9 |
I am trying to interfacing between Ansys Fluent 2019R2 and Matlab. I can run my Fluent simulation via Matlab. Now I am trying to calculate mass weighted average temperature of a volume and I have used this Matlab command
iFluentTuiInterpreter.doMenuCommandToString('repor t volume-integrals mass-avg (channel) temperature n') This code can measure the temperature and can print the value in Matlab command window. But now I want to save this value in another variable so that I can use this number in post-processing. I am trying to use this command iFluentTuiInterpreter.doMenuCommandToString('defin e variable pick report volume-integrals mass-avg (channel) temperature n') but its not working. Can someone please help? Thank you. |
|
October 15, 2019, 01:05 |
|
#2 |
Senior Member
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15 |
Would you like to set fluent to write this value to a file, and then read it in matlab? Or this would be bad for your case.
|
|
October 16, 2019, 18:03 |
|
#3 |
New Member
Amitav tikadar
Join Date: Jul 2017
Location: Atlanta
Posts: 14
Rep Power: 9 |
||
October 16, 2019, 19:52 |
|
#4 |
Senior Member
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15 |
If you tried to do this through an external file, would it work at all, or would it create issues with the timing?
|
|
October 16, 2019, 23:35 |
|
#5 | |
New Member
Amitav tikadar
Join Date: Jul 2017
Location: Atlanta
Posts: 14
Rep Power: 9 |
Quote:
x=iFluentTuiInterpreter.doMenuCommandToString('rep or t volume-integrals mass-avg (channel) temperature n'); %it will save temperature as a string called x y=char(x); % convert x into a character .... Then I split the character and finally convert the appropriate character into a number. Thank you. |
||
Tags |
fluent, matlab, matlab coding |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
looking for a smart interface matlab fluent | chary | FLUENT | 24 | June 18, 2021 10:07 |
linking matlab and fluent | Nair | FLUENT | 23 | January 12, 2020 19:55 |
How To Make MATLAB Apps For Fluent | behest | FLUENT | 0 | March 3, 2014 08:00 |
Creating UDF file in MATLAB for Fluent | ppa381 | Fluent UDF and Scheme Programming | 1 | October 10, 2013 10:27 |
Matlab for UDF's in Fluent | tejasvikrishna | FLUENT | 1 | September 9, 2010 08:28 |