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

Using a UDF returned results in another UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2017, 10:58
Default Using a UDF returned results in another UDF
  #1
New Member
 
ashi
Join Date: Jan 2017
Posts: 6
Rep Power: 9
arashk is on a distinguished road
hello there,

I am trying to define a source term for k-epsilon equation. I have defined a regular source using DEFINE_SOURCE macro. in my model I need to use drag coefficient as one parameter. I have used DEFINE_EXCHANGE_PROPERTY macro to define a custom drag force and I used it in the same simulation at the same time. everything is the same as those in UDF Manual.

How can I access the value of drag coefficient which is returned using DEFINE_EXCHANGE_PROPERTY macro in my DEFINE_SOURCE macro? I tried to access it with RP_GET_VAR but I couldn't get it right.

I appreciate any help on that.

thnaks
Ashkan
arashk is offline   Reply With Quote

Old   December 12, 2017, 19:54
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
You may use UDMI to write value of drag coefficient.
Read Ansys Fluent Customization manual for more details.

Best regards
AlexanderZ is offline   Reply With Quote

Reply

Tags
exchange data in udf, udf, udf code, udf drag force


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
Replicating Scalable Wall Function with a UDF yousefaz FLUENT 0 August 4, 2017 02:30
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF programming fullmonty FLUENT 5 June 30, 2011 02:40
to export results using udf harry FLUENT 0 August 19, 2010 23:12
I need UDF help. S.Whitney FLUENT 0 October 15, 2007 11:29


All times are GMT -4. The time now is 15:50.