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

UDF for spatial and temperature dependent heatflux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2013, 13:17
Default UDF for spatial and temperature dependent heatflux
  #1
Member
 
ssixr's Avatar
 
sudhir
Join Date: Mar 2009
Location: india
Posts: 65
Rep Power: 17
ssixr is on a distinguished road
hello friends,
i have set of heat flux data with respect to x,y,Temp. i know its possible to get x,y co-ordinates and wall temperature of a face or cell. but i dont know how to apply the heat flux on this face or cell. is there function/macro for applying heat flux on face without writing 2D/3D interpolation loop? thank you
ssixr is offline   Reply With Quote

Old   February 10, 2013, 20:04
Default
  #2
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by ssixr View Post
hello friends,
i have set of heat flux data with respect to x,y,Temp. i know its possible to get x,y co-ordinates and wall temperature of a face or cell. but i dont know how to apply the heat flux on this face or cell. is there function/macro for applying heat flux on face without writing 2D/3D interpolation loop? thank you

Hi,

Try Define_profile UDF macro in order to specify desired heat flux on wall B.C.

Goodluck
syavash is offline   Reply With Quote

Old   March 5, 2013, 22:26
Default
  #3
Member
 
ssixr's Avatar
 
sudhir
Join Date: Mar 2009
Location: india
Posts: 65
Rep Power: 17
ssixr is on a distinguished road
Quote:
Originally Posted by syavash View Post
Hi,

Try Define_profile UDF macro in order to specify desired heat flux on wall B.C.

Goodluck

thank you syavash for your reply..i have used DEFINE_PROFILE macro.As you know while using F_CENTROID(x,f,t) we are mentioning only about x axis not about y axis for a face..is it possible to give command like F_CENTORID(x,y,temp,f,t)? i dont think so..if there is another way, please let me know....
sudhir
ssixr is offline   Reply With Quote

Old   March 5, 2013, 22:41
Default
  #4
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by ssixr View Post
thank you syavash for your reply..i have used DEFINE_PROFILE macro.As you know while using F_CENTROID(x,f,t) we are mentioning only about x axis not about y axis for a face..is it possible to give command like F_CENTORID(x,y,temp,f,t)? i dont think so..if there is another way, please let me know....
sudhir
Dear sudhir,

F_CENTROID Macro gets face centroid coordinates and store them into a Vector namely x (any symbol is allowable). If your code requires y coordinate, simply try : y=x[1] or if it requires z coordinate try z=x[2] (problem must be in 3d for z).
Bests.
syavash is offline   Reply With Quote

Old   March 7, 2013, 12:34
Default
  #5
Member
 
ssixr's Avatar
 
sudhir
Join Date: Mar 2009
Location: india
Posts: 65
Rep Power: 17
ssixr is on a distinguished road
Quote:
Originally Posted by syavash View Post
Dear sudhir,

F_CENTROID Macro gets face centroid coordinates and store them into a Vector namely x (any symbol is allowable). If your code requires y coordinate, simply try : y=x[1] or if it requires z coordinate try z=x[2] (problem must be in 3d for z).
Bests.
hello syavash,
thank you for your reply. now i can get the x,y,temp of a cell/face.As i mentioned in my first post, i have experimental heat flux w.r.t to x,y,temp and now i also have x,y,temp of face/cell. how to apply/map the available experimental heatflux on the cell/face ?...thanks...

sudhir
ssixr is offline   Reply With Quote

Old   March 7, 2013, 13:20
Default
  #6
Senior Member
 
Ehsan Asgari
Join Date: Apr 2010
Posts: 473
Rep Power: 18
syavash is on a distinguished road
Quote:
Originally Posted by ssixr View Post
hello syavash,
thank you for your reply. now i can get the x,y,temp of a cell/face.As i mentioned in my first post, i have experimental heat flux w.r.t to x,y,temp and now i also have x,y,temp of face/cell. how to apply/map the available experimental heatflux on the cell/face ?...thanks...

sudhir

If you have heat flux as a function (curve fit, correlation etc.) of spatial coordinates,you could implement Define_profile macro to do what you wish. Refer to UDF manual of Fluent to learn the procedure. But if there is no certain relation between parameters;let's say you have scattered heat flux; then you should yous boundary profile option. Refer to Fluent User's guide in this case.

Bests.
Syavash
syavash 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
UDF for Temperature Dependent Energy Source er.mkumar Fluent UDF and Scheme Programming 9 March 14, 2024 05:01
Could anyone help me write UDF for time dependent temperature in BC PKM Fluent UDF and Scheme Programming 17 November 17, 2018 10:10
Inlet won't apply UDF and has temperature at 0K! tccruise Fluent UDF and Scheme Programming 2 September 14, 2012 07:08
Please Help! Temperature profile UDF for 3D geometry subhankar_bhandari FLUENT 2 April 16, 2011 06:30
UDF: temperature dependent BC ehooi FLUENT 6 January 22, 2011 13:26


All times are GMT -4. The time now is 20:21.