|
[Sponsors] |
December 2, 2016, 09:26 |
Using MATLAB to control FLUENT
|
#1 |
New Member
DU Shen
Join Date: Nov 2016
Posts: 14
Rep Power: 10 |
Hello everyone,
I am trying to use MATLAB to control FLUENT. Everything goes well until I come across the execution of UDF. For applying a UDF, firstly I interpret the c file and the DEFINE_ON_DEMAND's name is readData. So then I want to execute the UDF in MATLAB. And I wrote: tui.DoMenuCommand('define user-defined execute-on-demand "readData"') Then the problem displayed: Error: eval: unbound variable Error Object: readData So are there anybody can help me to go through this problem. Thank you in advance. SHEN |
|
December 2, 2016, 20:20 |
|
#2 |
New Member
DU Shen
Join Date: Nov 2016
Posts: 14
Rep Power: 10 |
Sorin has helped me to solve this problem. The right way to write this code is
tui.DoMenuCommand('define user-defined execute-on-demand "readData"') If somebody like to use MATLAB to manipulate FLUENT, I recommend this post: http://www.cfd-online.com/Forums/flu...tml#post628046 Thanks Sorin |
|
January 27, 2017, 13:39 |
|
#3 | |
New Member
Sorin Munteanu
Join Date: Apr 2013
Posts: 27
Rep Power: 14 |
Thank you.
Also for a good starting point read http://www.ansys-blog.com/how-to-mak...ys/#more-15509 Sorin Quote:
|
||
Tags |
execute on demand, fluent, matlab, unbound variable |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
linking matlab and fluent | Nair | FLUENT | 23 | January 12, 2020 19:55 |
Creating UDF file in MATLAB for Fluent | ppa381 | Fluent UDF and Scheme Programming | 1 | October 10, 2013 10:27 |
Importing FLUENT .srp files into MATLAB | CAD-AL | Main CFD Forum | 0 | August 8, 2011 09:41 |
Creating UDF file in MATLAB for Fluent | ppa381 | FLUENT | 0 | July 13, 2009 15:33 |
fluent transient simulation control | Kai Kang | FLUENT | 0 | January 20, 2000 13:52 |