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

How to add heat flux value instead of heat transfer coefficient?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2017, 07:53
Default How to add heat flux value instead of heat transfer coefficient?
  #1
New Member
 
Gene
Join Date: Mar 2017
Posts: 13
Rep Power: 9
gzsakuraz is on a distinguished road
Hi, I have amount of heat flux let's say its 2000 W/m2. I want to add it in the face of the cell which I already have it in UDMI.

Please help

DEFINE_HEAT_FLUX(heat_flux, f, t, c0, t0, cid, cir)
{
begin_f_loop(f,t){
if(F_UDMI(f,t,1)==1){ //apply heat
cid[0] = 2000;
}
}
}
gzsakuraz is offline   Reply With Quote

Old   April 24, 2017, 18:18
Default
  #2
Member
 
Join Date: Nov 2016
Posts: 73
Rep Power: 10
h0rst is on a distinguished road
you need to define cid[1] and cid[2], otherwise it will not work
h0rst is offline   Reply With Quote

Old   April 25, 2017, 09:39
Default
  #3
New Member
 
Gene
Join Date: Mar 2017
Posts: 13
Rep Power: 9
gzsakuraz is on a distinguished road
Quote:
Originally Posted by h0rst View Post
you need to define cid[1] and cid[2], otherwise it will not work
I dont understand what does it mean by cid[1] or cid[2]?
I am not sure what does it mean with different number.
does cid[0]=2000 mean 2000 w/m2 in the face?
gzsakuraz is offline   Reply With Quote

Old   April 25, 2017, 18:50
Default
  #4
Member
 
Join Date: Nov 2016
Posts: 73
Rep Power: 10
h0rst is on a distinguished road
You need to take into account how the heat transfer coefficient is calculated by Fluent.
h0rst is offline   Reply With Quote

Old   April 27, 2017, 08:19
Default
  #5
New Member
 
Gene
Join Date: Mar 2017
Posts: 13
Rep Power: 9
gzsakuraz is on a distinguished road
Quote:
Originally Posted by h0rst View Post
You need to take into account how the heat transfer coefficient is calculated by Fluent.
is it a good idea?

/* Wall Heat Generation Rate Profile UDF */

#include "udf.h"

DEFINE_PROFILE(wallheatgenerate,thread,i)
{
real source = 0.001;
face_t f;

begin_f_loop(f,thread)
F_PROFILE(f,thread,i) = source;
end_f_loop(f,thread)
}
gzsakuraz 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
How To Calculate Average Heat Transfer Coefficient in CFD-Post? Shomaz ul Haq CFX 16 November 24, 2019 19:57
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 08:00
Code to obtain correct heat transfer coefficient in a cylinder wt constant heat flux cdf_user Main CFD Forum 4 May 7, 2012 06:04
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
Question on heat transfer coefficient!!! Benny FLUENT 7 June 7, 2005 10:25


All times are GMT -4. The time now is 22:12.