|
[Sponsors] |
November 24, 2010, 06:10 |
modelling heat flux in udf
|
#1 |
New Member
Rafał Kryjak
Join Date: Jul 2010
Posts: 11
Rep Power: 16 |
I have problem with defining moving heat flux in udf. Heat flux is limited by circle and rest of the face transfering heat by convection.
I tried many times to modify this code but I even wasn't able to have stable heat flux circle on a face with desired parameters. Mesh geometry is a cube. I'll be really gratefull to anyone who help me with this code. Code:
#include "udf.h" DEFINE_PROFILE(laser,thread,i) { real q = 1000; real t = CURRENT_TIME; real x[ND_ND]; real qO; real xO = 5; real xOt; real z = 0; real v = 0.003; real r = 0.001; real alfa = 20; real TO = 290; real Tp = 280; face_t f; xOt = xO + v*t; qO = alfa*(TO-Tp); begin_f_loop(f,thread) { F_CENTROID(x,f,thread); if ( ((x[0]-xOt)*(x[0]-xOt) + (x[1]-z)*(x[1]-z) ) <= r*r ) F_PROFILE(f,thread,i) = q; else F_PROFILE(f,thread,i) = qO; } end_f_loop(f,thread) } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Wall Heat Flux & Temperature | Greg Perkins | FLUENT | 10 | November 20, 2015 10:32 |
Variable name for heat flux | peterle | CFX | 4 | February 13, 2014 03:21 |
Heat Flux Wall Boundary Confusion. | Joee | FLUENT | 1 | August 21, 2010 13:20 |
Heterogeneous heat flux | Kev | STAR-CD | 4 | July 7, 2009 05:48 |
Wall Heat Flux not a listed variable | mike | CFX | 8 | February 5, 2009 14:32 |