|
[Sponsors] |
Can I accesses the Output Parameters in UDF ? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 9, 2020, 22:38 |
Can I accesses the Output Parameters in UDF ?
|
#1 |
New Member
anonymous
Join Date: Sep 2019
Location: Taiwan
Posts: 4
Rep Power: 6 |
Hello
In fluent Report Definitions 1.JPG The force on the object be created as a output parameter 2.JPG The question is: can I accesses this/these output parameters in UDF? Thanks |
|
March 10, 2020, 03:10 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Code:
RP_Get_Input_Parameter("variablename") For parallel solver must be executed on host
__________________
best regards ****************************** press LIKE if this message was helpful |
|
March 10, 2020, 04:45 |
|
#3 | |
New Member
anonymous
Join Date: Sep 2019
Location: Taiwan
Posts: 4
Rep Power: 6 |
Quote:
I tried this method before but the GUI show gr.JPG when the parameter use as "Input Parameters" so I use "Output Parameter" instead |
||
March 10, 2020, 07:46 |
Output Parameter
|
#4 |
Senior Member
|
As of today, Fluent does not provide option to access output parameter value in C or Scheme Based UDF. So, there are at least two alternatives. One is to define the output parameter within the UDF, i.e., whatever output parameter is pointing to can be extracted within C UDF using DEFINE_ functions. Second is to define an rpvar and fetch value of output parameter and assign it to newly defined rpvar. rpvar value can be fetched in a UDF using RP_Get_Real or RP_Get_Integer.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to store UDF output for arbitrary/particular cell | athalia | FLUENT | 1 | September 24, 2019 05:02 |
Pro/E to ANSYS Parameterization Guide | Trues | ANSYS | 4 | April 18, 2018 05:52 |
Parameters Changing Based on UDF | Baden | Fluent UDF and Scheme Programming | 0 | January 5, 2017 15:57 |
WILLING TO PAY/ FREELANCER REQUIRED / small UDF coding force loads over body / 6DOF | acasas | CFD Freelancers | 1 | January 23, 2015 07:26 |
writing execFlowFunctionObjects | immortality | OpenFOAM Post-Processing | 30 | September 15, 2013 06:16 |