|
[Sponsors] |
March 12, 2009, 08:24 |
USD for heat flux BC
|
#1 |
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
|
|
March 16, 2009, 09:42 |
|
#2 |
New Member
Mavis Milton
Join Date: Mar 2009
Posts: 10
Rep Power: 17 |
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) } |
|
|
|
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 |