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

UDF for wall heat flux ?

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By Xiao Hu
  • 1 Post By Greg Perkins
  • 1 Post By famon
  • 1 Post By Shamoon Jamshed

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 11, 2001, 23:51
Default UDF for wall heat flux ?
  #1
Seyoung Oh
Guest
 
Posts: n/a
Hi ! Fluent users

I am tring to use UDF to modificate the heat flux at the wall boundary. However, I can't find the Fluent's variable which denotes the wall heat flux in the function " DEFINE_HEAT_FLUX".

Is there anybody who know this variable name? please let me know.

Thanks in advance.
  Reply With Quote

Old   April 13, 2001, 17:49
Default Re: UDF for wall heat flux ?
  #2
Xiao Hu
Guest
 
Posts: n/a
Looks like you may want to use DEFINE_PROFILE instead of DEFINE_HEAT_FLUX. DEFINE_PROFILE allows you to define a heat flux profile while DEFINE_HEAT_FLUX allows you to define the way to calculate heat flux. In other words, if you want to specify heat flux as a function of location, DEFINE_PROFILE is what you need.
Ahmed Fakhrey likes this.
  Reply With Quote

Old   June 9, 2001, 11:58
Default Re: UDF for wall heat flux ?
  #3
Christophe Doublet
Guest
 
Posts: n/a
"Looks like you may want to use DEFINE_PROFILE instead of DEFINE_HEAT_FLUX. DEFINE_PROFILE allows you to define a heat flux profile while DEFINE_HEAT_FLUX allows you to define the way to calculate heat flux.In other words, if you want to specify heat flux as a function of location, DEFINE_PROFILE is what you need."

Hi, I have a similar problem: I want to specify a heat transfer coeficients profile around a turbine blade in 3d. Ok, my profile is constant all over the blade span. To have an exemple of what FLUENT expects as an input file. I ran a dummy case, then PROFILE-> Write, I choose my surface and Heat transfer coefficient and now I have a file with: 4 vectors (x, y, z, heat transfer coefficients). I have a huge amount of points (all the nodes of my mesh I guess...), but I just want to specify a few points. Is there a mean of doing that or have I really to specify a value for each nodes???
  Reply With Quote

Old   June 14, 2001, 01:22
Default Re: UDF for wall heat flux ?
  #4
Greg Perkins
Guest
 
Posts: n/a
My understanding is that

DEFINE_PROFILE allows you to define the heat flux profile at the surface

whereas

DEFINE_HEAT_FLUX allows you to define the heat transfer co-efficient profile at the surface

I have used both in my codes.

You can specify a constant or variable values depending upon how you write your udf. Do this by accessing the node, face data and adjacent cell data at the surface.

Example: If you want to modify just some points for a different heat transfer co-efficient you can use the example for DEFINE_HEAT_FLUX in the udf manual and add a test to change h at a particular region on the surface.

Greg
Ahmed Fakhrey likes this.
  Reply With Quote

Old   December 3, 2014, 14:17
Smile
  #5
New Member
 
Farzad Montazery
Join Date: Oct 2014
Location: Iran, Tabriz
Posts: 21
Rep Power: 12
famon is on a distinguished road
Quote:
Originally Posted by Greg Perkins
;97255
My understanding is that

DEFINE_PROFILE allows you to define the heat flux profile at the surface

whereas

DEFINE_HEAT_FLUX allows you to define the heat transfer co-efficient profile at the surface

I have used both in my codes.

You can specify a constant or variable values depending upon how you write your udf. Do this by accessing the node, face data and adjacent cell data at the surface.

Example: If you want to modify just some points for a different heat transfer co-efficient you can use the example for DEFINE_HEAT_FLUX in the udf manual and add a test to change h at a particular region on the surface.

Greg
Hi
I am writing UDF code for variable heat flux over a circular tube but H value is unacceptable, could you please look at my UDF and tell me my mistakes?

#include "udf.h"
DEFINE_PROFILE(axial_flux_profile,t,i)
{
real x[ND_ND]; /* this will hold the position vector */
real q;
real m;
face_t f;

begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
q = 0.5; /* q is the heat flux at z=0 in W/m2 */
m = 1;
F_PROFILE(f,t,i) = q*exp(0.5*m*x[3]);
}
end_f_loop(f,t)
}


Best Regards
Farzad
Ahmed Fakhrey likes this.
famon is offline   Reply With Quote

Old   September 15, 2016, 12:14
Default
  #6
New Member
 
hussein
Join Date: Aug 2016
Posts: 5
Rep Power: 10
hussein92 is on a distinguished road
please help
how can i define the heat flux as a function of temperature of wall

q=1000*(1-0.014*(T-298))

any one can help me in writing the UDF please
hussein92 is offline   Reply With Quote

Old   August 4, 2018, 06:44
Default
  #7
Senior Member
 
Shamoon Jamshed
Join Date: Apr 2009
Location: Karachi
Posts: 381
Rep Power: 18
Shamoon Jamshed is on a distinguished road
Send a message via Skype™ to Shamoon Jamshed
Quote:
Originally Posted by famon View Post
Hi
I am writing UDF code for variable heat flux over a circular tube but H value is unacceptable, could you please look at my UDF and tell me my mistakes?

#include "udf.h"
DEFINE_PROFILE(axial_flux_profile,t,i)
{
real x[ND_ND]; /* this will hold the position vector */
real q;
real m;
face_t f;

begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
q = 0.5; /* q is the heat flux at z=0 in W/m2 */
m = 1;
F_PROFILE(f,t,i) = q*exp(0.5*m*x[3]);
}
end_f_loop(f,t)
}


Best Regards
Farzad
x[3] is wrong I think. Because x dim = x[0], y = x[1] and z=x[2]
Ahmed Fakhrey likes this.
Shamoon Jamshed 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
CFX - wall heat flux divarano CFX 2 December 4, 2006 17:14
Basic question: UDF for wall heat flux Carl FLUENT 1 August 5, 2006 20:01
heat flux to heat rejection azmir Siemens 0 June 23, 2004 21:53
UDF for a heat flux applied during T second on a w nazeem FLUENT 0 June 12, 2004 11:28
udf for transient heat flux BC isaac FLUENT 1 June 3, 2004 17:29


All times are GMT -4. The time now is 13:32.