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

Question on DEFINE_HEAT_FLUX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 2, 2020, 10:16
Question Question on DEFINE_HEAT_FLUX
  #1
New Member
 
Join Date: May 2020
Posts: 7
Rep Power: 5
ASDzxc is on a distinguished road
Hi there,
I'm doing a fluid-solid coupling heat transfer problem. Since I've just started using Fluent, I've created a very simple test case (no radiation) to figure out what Fluent can do (attachement):
1.png
Based on the description of udf DEFINE_HEAT_FLUX, it modifies the diffusive heat flux coefficients using equation:
qid = cid[0] + cid[1]*C_T(c0,t0) - cid[2]*F_T(f,t) - cid[3]*pow(F_T(f,t),4)
so I wrote the udf:
DEFINE_HEAT_FLUX(heat_flux, f, t, c0, t0, cid, cir)
{
real h=2000.;
cid[1] = h;
cid[2] = h;
cid[0] = 0.;
cid[3] = 0.;
C_UDMI(c0,t0,1)=h;
}
Then I got questions about the result, it seems really strange for me.
1. I tried to visualize C_UDMI(c0,t0,1) in the result. Instead of showing 2000 in some near wall cells, the max of the contour is somewhere around 1500 or 1000, not 2000, why?
2. What exactly this udf modified? In the figure that I uploaded,
h(T_f-T_interface)=-k_wall*(T_interface-T_wall)/d2
where h is the coefficient assigned using udf, k_wall is the wall conductivity.
is this correct?
Thanks for your help.
ASDzxc is offline   Reply With Quote

Old   June 2, 2020, 10:41
Default Define_heat_flux
  #2
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
This function could have many uses, such as, modeling a phenomenon that is not being resolved. The objective is to modify the relation between heat flux and temperature. And it is not supposed to be used for CHT problems. If you expect the system to behave as it should for a solid-fluid pair, then do not use DEFINE_HEAT_FLUX function.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   June 2, 2020, 10:54
Default
  #3
New Member
 
Join Date: May 2020
Posts: 7
Rep Power: 5
ASDzxc is on a distinguished road
Quote:
Originally Posted by vinerm View Post
This function could have many uses, such as, modeling a phenomenon that is not being resolved. The objective is to modify the relation between heat flux and temperature. And it is not supposed to be used for CHT problems. If you expect the system to behave as it should for a solid-fluid pair, then do not use DEFINE_HEAT_FLUX function.
Hi Vinerm,
Thanks for you reply.
Could you please give me an example of "a phenomenon that is not being resolved"? and how does it "modify the relation between heat flux and temperature"?
I tried to model the system as a normal solid-fluid pair (hot fluid passes through a cylinder, and we would like to predict the temperature on the outer cylinder wall surface), the prediction does not match the experiments.
regards,
ASDzxc is offline   Reply With Quote

Old   June 2, 2020, 11:13
Default Conjugate Heat Transfer
  #4
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
To model normal solid-fluid pair, just do the simulation without any UDF. Ensure that the solid has at least four cells across its thickness and there are not pyramids at the fluid-solid interface.

Unresolved phenomena could be of any nature, say, thermal energy transfer by ions or by magnetic lines of force that are not being resolved, but are affecting the thermal distribution for a specified flux. Then, user can modify the coefficients in such a manner so as to include these extra effects.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   June 2, 2020, 11:29
Default
  #5
New Member
 
Join Date: May 2020
Posts: 7
Rep Power: 5
ASDzxc is on a distinguished road
Quote:
Originally Posted by vinerm View Post
To model normal solid-fluid pair, just do the simulation without any UDF. Ensure that the solid has at least four cells across its thickness and there are not pyramids at the fluid-solid interface.

Unresolved phenomena could be of any nature, say, thermal energy transfer by ions or by magnetic lines of force that are not being resolved, but are affecting the thermal distribution for a specified flux. Then, user can modify the coefficients in such a manner so as to include these extra effects.
Thanks Vinerm, your reply is really helpful to me.
Now I understand DEFINE_HEAT_FLUX seems not be a good option for normal CHT problems.
In fact, modelling this problem (hot fluid passes through a cylinder, and predict the temperature profile on the outer cylinder wall surface as a function on time) is the first step of my project. It can be regarded as a first step to get familiar with fluent. The final objective is to change that pure fluid region to a porous medium region (the other stuff rest the same). I know in Fluent, we can model the thermal behaviour inside a porous medium, but when it comes to coupling the porous media with a solid wall. Does it the same as fluid-solid CHT problem? Do you think DEFINE_HEAT_FLUX can be useful in this situation?
ASDzxc is offline   Reply With Quote

Old   June 2, 2020, 11:33
Default Udf
  #6
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 35
vinerm will become famous soon enough
I don't have your complete project description, however, looking at what you described, you will not require DEFINE_HEAT_FLUX. Fluent can directly work with heat transfer between fluid medium and its solid part in porous region as well as between fluid-porous-solid domains.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   June 2, 2020, 11:45
Default
  #7
New Member
 
Join Date: May 2020
Posts: 7
Rep Power: 5
ASDzxc is on a distinguished road
Quote:
Originally Posted by vinerm View Post
I don't have your complete project description, however, looking at what you described, you will not require DEFINE_HEAT_FLUX. Fluent can directly work with heat transfer between fluid medium and its solid part in porous region as well as between fluid-porous-solid domains.
Thank you for your reply!
ASDzxc is offline   Reply With Quote

Old   May 19, 2023, 03:34
Default
  #8
New Member
 
sachin
Join Date: Dec 2016
Posts: 7
Rep Power: 9
sachin tom is on a distinguished road
I am trying to implement the RPI wall boiling model as a user-defined function in Ansys Fluent. Is the Define_HEAT_FLUX macro need to be used for it? How to give the liquid side coefficients and phase change coefficients separately with this macro.

Any help on this will be appreciable.
sachin tom is offline   Reply With Quote

Reply

Tags
ansys, define_heat_flux, fluent, heat flux, 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 symmetry in Autodesk Cfd 2016 ecto Autodesk Simulation CFD 0 October 20, 2015 04:16
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 10:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 13:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37


All times are GMT -4. The time now is 05:34.