CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

a question about udf, thank you!

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 30, 2009, 10:45
Default a question about udf, thank you!
  #1
New Member
 
patrick
Join Date: Apr 2009
Posts: 14
Rep Power: 16
hunter is on a distinguished road
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!
Attached Images
File Type: jpg 未命名.JPG (12.3 KB, 11 views)
hunter is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
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


All times are GMT -4. The time now is 08:31.