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

UDF MACRO Usage

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2019, 00:53
Post UDF MACRO Usage
  #1
New Member
 
kailash
Join Date: Jun 2018
Posts: 19
Rep Power: 8
kailash007 is on a distinguished road
Hi People,

I am facing an issue with DEFINE_EXECUTE_FROM_GUI. I was practicing the example from ANSYS fluent manual for resetting memory using DEFINE_EXECUTE_FROM_GUI macro. Now after successful compilation and when I run the code, the UDF is not running. I don't know how to make ANSYS run my code as there is no option to Hook it up.
kailash007 is offline   Reply With Quote

Old   April 24, 2019, 02:10
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
how do you run your code?

best regards
AlexanderZ is offline   Reply With Quote

Old   April 24, 2019, 16:38
Default
  #3
New Member
 
kailash
Join Date: Jun 2018
Posts: 19
Rep Power: 8
kailash007 is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
how do you run your code?

best regards
Pardon the usage of my words. I meant running the solution in ANSYS Fluent by clicking on "Calculation", not the code.
kailash007 is offline   Reply With Quote

Old   April 24, 2019, 22:37
Default
  #4
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
read what DEFINE_EXECUTE_FROM_GUI does

best regards
AlexanderZ is offline   Reply With Quote

Old   April 25, 2019, 02:12
Default
  #5
Senior Member
 
Svetlana Tkachenko
Join Date: Oct 2013
Location: Australia, Sydney
Posts: 416
Rep Power: 15
Svetlana is on a distinguished road
From documentation DEFINE_EXECUTE_FROM_GUI attaches to custom gui elements, which are created in scheme. I couldn't find examples of the latter, however.
Svetlana is offline   Reply With Quote

Old   April 25, 2019, 02:31
Default
  #6
New Member
 
kailash
Join Date: Jun 2018
Posts: 19
Rep Power: 8
kailash007 is on a distinguished road
Exactly the problem. The manual says that ANSYS Fluent solver will automatically run the UDF when a call is made from a user-defined Scheme program to execute. In order to do that we have to create a User Interface I guess. Am working on it still.

Here is the link if you are interested:

https://www.sharcnet.ca/Software/Ans...-B1664497.html
kailash007 is offline   Reply With Quote

Reply

Tags
udf and programming


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
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
UDF macro not compliled KITetima Fluent UDF and Scheme Programming 12 October 23, 2013 10:13
UDF Data Access Macro Woo Meng Wai FLUENT 0 November 6, 2007 21:23
I want to learn UDF usage in Fluent sangamnath FLUENT 5 December 17, 2005 13:16
DEFINE_DPM_OUTPUT macro UDF HELP Puneet FLUENT 3 November 28, 2003 11:55


All times are GMT -4. The time now is 01:36.