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

Using MATLAB to control FLUENT

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2016, 09:26
Cool Using MATLAB to control FLUENT
  #1
New Member
 
DU Shen
Join Date: Nov 2016
Posts: 14
Rep Power: 10
tiancaidushen is on a distinguished road
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
tiancaidushen is offline   Reply With Quote

Old   December 2, 2016, 20:20
Smile
  #2
New Member
 
DU Shen
Join Date: Nov 2016
Posts: 14
Rep Power: 10
tiancaidushen is on a distinguished road
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
tiancaidushen is offline   Reply With Quote

Old   January 27, 2017, 13:39
Default
  #3
New Member
 
Sorin Munteanu
Join Date: Apr 2013
Posts: 27
Rep Power: 14
Sorin is on a distinguished road
Thank you.

Also for a good starting point read http://www.ansys-blog.com/how-to-mak...ys/#more-15509

Sorin

Quote:
Originally Posted by tiancaidushen View Post
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
Sorin is offline   Reply With Quote

Reply

Tags
execute on demand, fluent, matlab, unbound variable


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


All times are GMT -4. The time now is 21:11.