|
[Sponsors] |
September 30, 2009, 10:45 |
a question about udf, thank you!
|
#1 |
New Member
patrick
Join Date: Apr 2009
Posts: 14
Rep Power: 16 |
I am simulating condensation. but lots of problem appeared. for example, I set the heat flux q=h*(tl-tw) using DEFINE_HEAT_FLUX. the c file is below:
#include "udf.h" real h = 0.; DEFINE_ADJUST(htc_adjust,domain) { h=0.01; } DEFINE_HEAT_FLUX(heat_flux, f, t, c0, t0, cid, cir) { cid[0] = 0.; cid[1] = h; cid[2] = h; cid[3] = 0.; } first: static real h=0., then parse error appeared. but the user's guide has static. i do not know why. second, the calculated results is not corrected. therefore, i have a question, the solid wall has thickness. where the heat flux is? isn't it between the flow and the solid. who can help me check the cas/dat? thank you! |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A simple UDF question | Pirooz Darabi | FLUENT | 0 | October 31, 2007 16:22 |
Basic question: UDF for wall heat flux | Carl | FLUENT | 1 | August 5, 2006 20:01 |
Question about UDF | summer | FLUENT | 1 | July 18, 2006 11:13 |
UDF question | Ryan | FLUENT | 2 | July 5, 2006 15:54 |
A question about the dynamic mesh UDF | Tango | FLUENT | 1 | November 27, 2003 03:56 |