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

Automatically hook SOURCE UDF from other UDF?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 15, 2017, 03:57
Default Automatically hook SOURCE UDF from other UDF?
  #1
Senior Member
 
Cees Haringa
Join Date: May 2013
Location: Delft
Posts: 607
Rep Power: 0
CeesH is on a distinguished road
Hi all,

I am currently working on a sizable UDF module to automate some of my workflow (and more importantly, make the stuff I wrote more accessible to coworkers)

I was wondering if there is a way to automatically hook a UDF via the DEFINE_EXECUTE_FROM_GUI macro. In this case, I've made a scheme file for a GUI element, where among other things the user can tick whether they want to set a substrate feed rate in a certain cell-zone. What I would like is that the proper UDFs are automatically hooked if the user ticks that button, to reduce the chance of errors. Conceptually, I see at least 3 options, but I don't know if any of these options are actually workable (or if there are other options I overlooked):

- Run scheme + GUI-UDF, load other UDF directly from this UDF
- Run a journal file from the GUI-UDF with the required hook commands
- Identify the value of the necesarry rp-values directly in the scheme file, and load UDF or journal file from there.

Did any of you face this issue before? (and solved it?)
CeesH 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
SparceImage v1.7.x Issue on MAC OS X rcarmi OpenFOAM Installation 4 August 14, 2014 06:42
Problem compiling a custom Lagrangian library brbbhatti OpenFOAM Programming & Development 2 July 7, 2014 11:32
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
friction forces icoFoam ofslcm OpenFOAM 3 April 7, 2012 10:57


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