|
[Sponsors] |
December 11, 2012, 17:34 |
heat flux UDF
|
#1 |
New Member
KAKI
Join Date: Aug 2011
Posts: 18
Rep Power: 15 |
pleas help me i want UDF of heat flux, Q=f(z)=1-(z/0.002)*(z/0.002) exemple in the link: http://www4.0zz0.com/2012/12/11/21/311406276.jpg |
|
December 12, 2012, 06:48 |
|
#2 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
Code:
#include "udf.h" /* profile for heat flux*/ DEFINE_PROFILE(heatflux_profile, t, i) { real x[ND_ND]; /* this will hold the position vector */ face_t f; begin_f_loop(f, t) { F_CENTROID(x, f,t); F_PROFILE(f, t, i) =1.-(x[2]/0.002)*(x[2]/0.002); } end_f_loop(f, t) } http://www.cfd-online.com/Forums/flu...9-help-me.html If needed edit the formula or translate your geometry to have the base aligned with z=0 (from the picture I see your geometry is centered in Z); also take care if you need positive or negative Q and if needed change the formula. Daniele |
|
December 12, 2012, 12:52 |
|
#3 |
New Member
KAKI
Join Date: Aug 2011
Posts: 18
Rep Power: 15 |
Thank you very much my brother, can you give me your email address to communicate
|
|
December 13, 2012, 10:47 |
|
#4 |
Senior Member
Rick
Join Date: Oct 2010
Posts: 1,016
Rep Power: 27 |
post your questions here, so also somebody else can help you.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Heat Flux Profile at Fluid-Porous Interface | Hitch8 | CFX | 4 | December 15, 2012 10:57 |
Enforce bounds error with heat loss boundary condition at solid walls | Chander | CFX | 2 | May 1, 2012 21:11 |
Basic question: UDF for wall heat flux | Carl | FLUENT | 1 | August 5, 2006 20:01 |
UDF for a heat flux applied during T second on a w | nazeem | FLUENT | 0 | June 12, 2004 11:28 |
udf for transient heat flux BC | isaac | FLUENT | 1 | June 3, 2004 17:29 |