CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

USD for heat flux BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 12, 2009, 08:24
Default USD for heat flux BC
  #1
shannag
Guest
 
Posts: n/a
Dear Fluent User, Could you please help me to write a UDF for the following boundary condition: Heat flux at some wall= aT^2 where T is temperature and a is constant. Many thanks
  Reply With Quote

Old   March 16, 2009, 09:42
Default
  #2
New Member
 
Mavis Milton
Join Date: Mar 2009
Posts: 10
Rep Power: 17
milton.tafadzwa is on a distinguished road
You can try this. My computer does not have both c and fluent software so did not test it.
#include "udf.h"
#define A (value of a)
DEFINE_PROFILE(heat_flux, c, t)
{
cell_t c;
real x[ND_ND];
real T = C_T(c, t);

begin_c_loop (c,t)
{
C_CENTROID(x,c,t);
y =x[1];
F_PROFILE(c,t,i) =A*T*T;
}
end_c_loop (c,t)
}
milton.tafadzwa 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
Wind turbine simulation Saturn CFX 58 July 3, 2020 01:13
Problem setting with chtmultiregionFoam Antonin OpenFOAM 10 April 24, 2012 09:50
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 04:05
Definition of Mass flux F1 Gavin Siemens 1 April 17, 2006 17:51
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 17:14.