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

UDF for spatial and temperature dependent heatflux

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   February 6, 2013, 12:17
Default UDF for spatial and temperature dependent heatflux
  #1
Member
 
ssixr's Avatar
 
sudhir
Join Date: Mar 2009
Location: india
Posts: 47
Rep Power: 7
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, 19:04
Default
  #2
Senior Member
 
Syavash
Join Date: Apr 2010
Location: Tehran, Karaj
Posts: 177
Rep Power: 6
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, 21:26
Default
  #3
Member
 
ssixr's Avatar
 
sudhir
Join Date: Mar 2009
Location: india
Posts: 47
Rep Power: 7
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, 21:41
Default
  #4
Senior Member
 
Syavash
Join Date: Apr 2010
Location: Tehran, Karaj
Posts: 177
Rep Power: 6
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, 11:34
Default
  #5
Member
 
ssixr's Avatar
 
sudhir
Join Date: Mar 2009
Location: india
Posts: 47
Rep Power: 7
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, 12:20
Default
  #6
Senior Member
 
Syavash
Join Date: Apr 2010
Location: Tehran, Karaj
Posts: 177
Rep Power: 6
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

Thread Tools
Display Modes

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 On
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 6 January 19, 2013 08:31
Inlet won't apply UDF and has temperature at 0K! tccruise Fluent UDF and Scheme Programming 2 September 14, 2012 06:08
Could anyone help me write UDF for time dependent temperature in BC PKM Fluent UDF and Scheme Programming 14 May 28, 2012 17:38
Please Help! Temperature profile UDF for 3D geometry subhankar_bhandari FLUENT 2 April 16, 2011 05:30
UDF: temperature dependent BC ehooi FLUENT 6 January 22, 2011 12:26


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