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

Can I accesses the Output Parameters in UDF ?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 9, 2020, 22:38
Default Can I accesses the Output Parameters in UDF ?
  #1
New Member
 
anonymous
Join Date: Sep 2019
Location: Taiwan
Posts: 4
Rep Power: 6
juifu is on a distinguished road
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
juifu is offline   Reply With Quote

Old   March 10, 2020, 03:10
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
Code:
RP_Get_Input_Parameter("variablename")
Returns the input parameter value of variable name

For parallel solver must be executed on host
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Old   March 10, 2020, 04:45
Default
  #3
New Member
 
anonymous
Join Date: Sep 2019
Location: Taiwan
Posts: 4
Rep Power: 6
juifu is on a distinguished road
Quote:
Originally Posted by AlexanderZ View Post
Code:
RP_Get_Input_Parameter("variablename")
Returns the input parameter value of variable name

For parallel solver must be executed on host
Hi Alexander:

I tried this method before

but the GUI show

gr.JPG

when the parameter use as "Input Parameters"

so I use "Output Parameter" instead
juifu is offline   Reply With Quote

Old   March 10, 2020, 07:46
Default Output Parameter
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
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.
vinerm is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 22:45.