|
[Sponsors] |
April 14, 2021, 12:44 |
Linking UDF and workbench parameter
|
#1 |
New Member
saeed akhavan
Join Date: Aug 2016
Posts: 4
Rep Power: 10 |
Hi.
I need to calculate some variables in an UDF and pass these variables to workbench parameters (i.e., updating parameters by UDF) for optimization purposes. Any suggestions? |
|
April 15, 2021, 02:19 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you may get input parameter in UDF using macro
Code:
RP_Get_Input_Parameter("variablename")
__________________
best regards ****************************** press LIKE if this message was helpful |
|
April 15, 2021, 02:25 |
|
#3 |
New Member
saeed akhavan
Join Date: Aug 2016
Posts: 4
Rep Power: 10 |
Thank you for your response Alexander.
I suppose RP_Get_Input_Parameter() just reads the workbench parameter value within the UDF. It can not change the parameter value. Am I wrong? |
|
April 15, 2021, 03:20 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
you may try to use
Code:
RP_Set_Real("name",value) which I've never used actually
__________________
best regards ****************************** press LIKE if this message was helpful |
|
Tags |
fluent - udf, parameters |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modify parameter from scheme or UDF | theophile | Fluent UDF and Scheme Programming | 3 | April 14, 2021 12:54 |
Sutile and Tricky : Drive Fluent UDF parameters directly from workbench | amscosta | Fluent UDF and Scheme Programming | 4 | July 21, 2020 17:50 |
UDF input parameter "unable to find rpvar" | sergiocavaleirocosta | Fluent UDF and Scheme Programming | 4 | March 26, 2019 08:57 |
Error in UDF calling parameters from ANSYS WorkBench | anand32 | Fluent UDF and Scheme Programming | 0 | April 6, 2018 20:52 |
implementing UDF for fluent in workbench for running multiple simulations | faizan_habib7 | Fluent UDF and Scheme Programming | 0 | March 18, 2016 23:29 |