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

Access parameter value from within DEFINE_PROFILE ???

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2010, 18:21
Default Access parameter value from within DEFINE_PROFILE ???
  #1
TDi
Member
 
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 16
TDi is on a distinguished road
I'm working on a problem where I want to set the heat flux at a boundary based on the temperature at a specific point. I'm trying to simulate thermostatic control of a heater.
I generated a point surface using Surface>Point...
It shows up as a surface group with an id and name, but this is not a ZONE_ID.

I can create an output parameter (area averaged temperature) with Define>Parameters... but when I tried to access this with a Scheme macro (RP_Get_Value("parameter_name")) in the UDF, it failed.
How can I look up this temperature from within the UDF???

I would really appreciate any help anyone can give on this. Thanks!
TDi is offline   Reply With Quote

Old   May 17, 2010, 13:00
Default
  #2
Member
 
Francesco Capuano
Join Date: May 2010
Posts: 81
Rep Power: 16
francesco_capuano is on a distinguished road
Try to use:
RP_Get_Real("variable-name")
francesco_capuano is offline   Reply With Quote

Old   May 17, 2010, 16:07
Default
  #3
Member
 
fox000002's Avatar
 
Join Date: Apr 2009
Posts: 46
Rep Power: 17
fox000002 is on a distinguished road
Define>Parameters???

What is your fluent version?
fox000002 is offline   Reply With Quote

Old   May 17, 2010, 16:10
Default
  #4
TDi
Member
 
Tim Diller
Join Date: Mar 2010
Location: Austin, TX
Posts: 32
Rep Power: 16
TDi is on a distinguished road
I'm using v12.1
TDi is offline   Reply With Quote

Reply

Tags
define_profile, scheme, udf


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
compile errors of boundary condition "expDirectionMixed" liying02ts OpenFOAM Bugs 2 February 1, 2010 21:11
MAxium residual...confusion with expert parameter KK CFX 3 February 8, 2008 11:47
UDF Data Access Macro Woo Meng Wai FLUENT 0 November 6, 2007 21:23
Error: access: unbound variable,HELP sudhakar FLUENT 0 January 16, 2007 00:21
Expert Parameter for compressible transient ioannis CFX 0 November 2, 2005 20:28


All times are GMT -4. The time now is 16:03.