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

Help. I cannot get the correct value of input parameters by using RP_Input_Parameter

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2019, 00:29
Default Help. I cannot get the correct value of input parameters by using RP_Input_Parameter
  #1
New Member
 
tang lei
Join Date: Jan 2019
Location: Shenzhen China
Posts: 15
Rep Power: 7
tangleiplus is on a distinguished road
Hello everyone.
I wanna know how to access the correct value of parameters in workbench.
I creat a parameter named "Volume Flow" and registered it.
After press "Print"., the information shows as follows;

Input parameters available in udf side
.................................................. ...............................................
parameter-name current-value id-to-be-used-in-udf
.................................................. ................................................
"Volume Flow" 1.23 real-1
.................................................. ..............................................
I think this information shows that I creat the parameter successfully and the value of this parameter is 1.23
Then I tried to use a UDF to print the value on the screen to make sure that I can access the parameter.
The UDF code is:

DEFINE_INIT(initial,d)
{
real a;
a=RP_Input_parameter("real-1");
printf("a= %f\n,a);
}

The result is always "a=-0.000000" no mater how did I adjust the value of "real-1"

So have I missed something important? How can Iget the correct value of this parameter. please help.

Thanks and regards.
tangleiplus 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
Getting different values for defined input parameters in fluent Sagar7 FLUENT 0 August 29, 2017 13:04
A UDF for mixture outlet variable derived from two other input parameters? ebtedaei FLUENT 0 July 12, 2017 02:17
Real Geometry and input parameters of industrial boiler Michail Main CFD Forum 2 March 28, 2013 14:34
[Gmsh] discretizer - gmshToFoam Andyjoe OpenFOAM Meshing & Mesh Conversion 13 March 14, 2012 04:35
units of geometrical parameters lost SoobY ANSYS Meshing & Geometry 2 January 10, 2011 03:58


All times are GMT -4. The time now is 10:17.