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

Temperature dependent wall heat flux

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 6, 2018, 19:22
Default Temperature dependent wall heat flux
  #1
New Member
 
CA
Join Date: Dec 2018
Posts: 2
Rep Power: 0
justinc is on a distinguished road
Hello All,

I am trying to model a temperature dependent wall heat flux for a forced convection problem, and I cannot find any simple examples or help on the UDF. From my understanding I will be using DEFINE_HEAT_FLUX, but I am lost when it comes to writing the code.

The wall heat flux is a simple expression where it is directly proportional to the temperature q=aT where "a" is a constant.

Thanks in advance.
justinc is offline   Reply With Quote

Old   December 6, 2018, 23:07
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
All information about this topic could be found in Ansys Fluent Customization manual.

Direction for you:
from manual

DEFINE_HEAT_FLUX Description

You can use DEFINE_HEAT_FLUX to modify the heat flux at a wall. Despite the name, a DEFINE_HEAT_FLUX UDF is not the means to specify the actual heat flux entering a domain from the outside. To specify this type of heat flux, you would simply use a DEFINE_PROFILE function in conjunction with a heat flux thermal boundary condition. In contrast, a DEFINE_HEAT_FLUX UDF allows you to modify the way in which the dependence between the flux entering the domain and the wall and cell temperatures is modeled.

DEFINE_PROFILE Description

You can use DEFINE_PROFILE to define a custom boundary profile or cell zone condition that varies as a function of spatial coordinates or time.
Note that DEFINE_PROFILE allows you to modify only a single value for wall heat flux. Single values are used in the explicit source term which ANSYS Fluent does not linearize.

Simply saying for your case DEFINE_PROFILE is appropriate macro
code example from manual
Code:
/***********************************************************************
UDF for specifying steady-state parabolic pressure profile boundary
profile for a turbine vane
************************************************************************/
#include "udf.h"
DEFINE_PROFILE(pressure_profile,t,i)
{
real x[ND_ND]; /* this will hold the position vector */
real y;
face_t f;
begin_f_loop(f,t)
{
F_CENTROID(x,f,t);
y = x[1];
F_PROFILE(f,t,i) = 1.1e5 - y*y/(.0745*.0745)*0.1e5;
}
end_f_loop(f,t)
}
Once again, I recommend to you read Ansys Fluent Customization manual first

best regards
AlexanderZ is offline   Reply With Quote

Old   December 9, 2018, 15:42
Default
  #3
New Member
 
CA
Join Date: Dec 2018
Posts: 2
Rep Power: 0
justinc is on a distinguished road
Hi Alexander,

Thanks for the response. I did go over the manual briefly before posting this and it seems as if the Define_Heat_Flux UDF is more fitting for a temperature dependent wall or cell heat flux.

The manual states, Define_Profile is used to "to specify the actual heat flux entering a domain from the outside." Whereas define_heat_flux UDF is used to "modify the way in which the dependence between the flux entering the domain and the wall and cell temperatures is modeled"

Attached is a picture of the geometry for clarification.

thanks,
Justin
Attached Images
File Type: png Geometry Schematic.PNG (119.0 KB, 24 views)
justinc is offline   Reply With Quote

Old   January 25, 2020, 03:36
Default
  #4
New Member
 
Join Date: Jul 2014
Posts: 26
Rep Power: 12
Pacific is on a distinguished road
Hi there,


Could you find the answer?
I have faced the same problem.
All I know is that we should use Define_heat_flux for temperature dependent heat flux.


https://www.afs.enea.it/project/neptunius/docs/fluent/html/udf/node247.htm
Pacific is offline   Reply With Quote

Reply

Tags
define_heat_flux, heat, heat flux, temperature dependent, 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
Question about adaptive timestepping Guille1811 CFX 25 November 12, 2017 17:38
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 17:44
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00
Heat flux and wall temperature divergence Mat_fr FLUENT 2 March 6, 2013 08:58
Heat transfer BC at wall- why need wall thickness? Julie FLUENT 7 February 3, 2012 21:41


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