CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF for spatial and temperature dependent heatflux (http://www.cfd-online.com/Forums/fluent-udf/112861-udf-spatial-temperature-dependent-heatflux.html)

ssixr February 6, 2013 13:17

UDF for spatial and temperature dependent heatflux
 
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

syavash February 10, 2013 20:04

Quote:

Originally Posted by ssixr (Post 406385)
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

ssixr March 5, 2013 22:26

Quote:

Originally Posted by syavash (Post 407025)
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

syavash March 5, 2013 22:41

Quote:

Originally Posted by ssixr (Post 411821)
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.

ssixr March 7, 2013 12:34

Quote:

Originally Posted by syavash (Post 411822)
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

syavash March 7, 2013 13:20

Quote:

Originally Posted by ssixr (Post 412340)
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


All times are GMT -4. The time now is 06:04.