|
[Sponsors] |
![]() |
![]() |
#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? |
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
![]() |
![]() |
![]() |
![]() |
#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? |
|
![]() |
![]() |
![]() |
![]() |
#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 |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Modify parameter from scheme or UDF | theophile | Fluent UDF and Scheme Programming | 3 | April 14, 2021 11:54 |
Sutile and Tricky : Drive Fluent UDF parameters directly from workbench | amscosta | Fluent UDF and Scheme Programming | 4 | July 21, 2020 16:50 |
UDF input parameter "unable to find rpvar" | sergiocavaleirocosta | Fluent UDF and Scheme Programming | 4 | March 26, 2019 07:57 |
Error in UDF calling parameters from ANSYS WorkBench | anand32 | Fluent UDF and Scheme Programming | 0 | April 6, 2018 19:52 |
implementing UDF for fluent in workbench for running multiple simulations | faizan_habib7 | Fluent UDF and Scheme Programming | 0 | March 18, 2016 22:29 |