|
[Sponsors] |
December 12, 2017, 11:58 |
Using a UDF returned results in another UDF
|
#1 |
New Member
ashi
Join Date: Jan 2017
Posts: 6
Rep Power: 9 |
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 |
|
December 12, 2017, 20:54 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
You may use UDMI to write value of drag coefficient.
Read Ansys Fluent Customization manual for more details. Best regards |
|
Tags |
exchange data in udf, udf, udf code, udf drag force |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Replicating Scalable Wall Function with a UDF | yousefaz | FLUENT | 0 | August 4, 2017 03:30 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF programming | fullmonty | FLUENT | 5 | June 30, 2011 03:40 |
to export results using udf | harry | FLUENT | 0 | August 20, 2010 00:12 |
I need UDF help. | S.Whitney | FLUENT | 0 | October 15, 2007 12:29 |