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

udf problem about wall heat flux

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 23, 2007, 16:12
Default udf problem about wall heat flux
  #1
stepanie
Guest
 
Posts: n/a
Hi, I don't know how to define uniform heat flux of wall changing with time. Here is my code. But there is error when I start to iteration. If I should use DEFINE_HEAT_FLUX? Is there an simple example for this micro? Thanks!

#include "udf.h"

DEFINE_PROFILE(fluxflow, thread, position) { real tim;

face_t f; cell_t c; Thread *t;

begin_f_loop(f, thread) { tim=RP_Get_Real("flow-time");

F_PROFILE(f, thread, position)=10tim } end_f_loop(f, thread) }

  Reply With Quote

Old   February 23, 2007, 17:06
Default Re: udf problem about wall heat flux
  #2
shanti
Guest
 
Posts: n/a
I think there are syntax errors. There is no semicolon at the end of F_PROFILE statement.

F_PROFILE(f, thread, position) = 10* time;

try this..if its working or not..

shanti
  Reply With Quote

Old   February 23, 2007, 18:02
Default Re: udf problem about wall heat flux
  #3
stepanie
Guest
 
Posts: n/a
Hi shanti,

Thanks for your suggestion, I will try later when I finish my class now.

  Reply With Quote

Old   February 23, 2007, 19:45
Default Re: udf problem about wall heat flux
  #4
stepanie
Guest
 
Posts: n/a
Hi,

I have modified the F_PROFILE(f, thread, position)=10*time; Now it can pass interperted. But when I initialize and run, there is error message.

I want to give a heat flux changing with time into the sidewall of a solid cylinder. How to define it? Which macro should I use? Thanks.

chip-exec: fluxflow: argument 1: incorrect type (36): int expectedchip-exec: fluxflow: argument 2: incorrect type (5): pointer expectedchip-exec: fluxflow: argument 3: incorrect type (0): int expectedchip-exec: fluxflow: argument 4: incorrect type (0): pointer expectedchip-exec: fluxflow: argument 5: incorrect type (0): pointer expectedchip-exec: fluxflow: argument 6: incorrect type (0): pointer expected

  Reply With Quote

Old   February 23, 2007, 19:54
Default Re: udf problem about wall heat flux
  #5
shanti
Guest
 
Posts: n/a
Hi

do you want the flux value to be 10*time?

shanti
  Reply With Quote

Old   February 23, 2007, 19:57
Default Re: udf problem about wall heat flux
  #6
stepanie
Guest
 
Posts: n/a
Yes. I want the flux is the function of time, and the time is from 0~120 sec.

  Reply With Quote

Old   February 23, 2007, 19:59
Default Re: udf problem about wall heat flux
  #7
shanti
Guest
 
Posts: n/a
Can you give the exact relation between the heat flux and the time?
  Reply With Quote

Old   February 23, 2007, 20:06
Default Re: udf problem about wall heat flux
  #8
stepanie
Guest
 
Posts: n/a
flux=10*time;

That is when time=0, flux=0;

time=1, flux=10;

time=2, flux=20;

. .

. .

. .

time=120,flux=1200;

  Reply With Quote

Old   February 23, 2007, 20:09
Default Re: udf problem about wall heat flux
  #9
shanti
Guest
 
Posts: n/a
sorry, I have no clue about the error. I will lwt you know if i can figure it out..

shanti
  Reply With Quote

Old   February 23, 2007, 20:13
Default Re: udf problem about wall heat flux
  #10
stepanie
Guest
 
Posts: n/a
Thanks. I think should use DEFINE_HEAT_FLUX to give the condition of wall flux. But I don't konw how to use DEFINE_HEAT_FLUX....
  Reply With Quote

Old   February 26, 2007, 05:25
Default Re: udf problem about wall heat flux
  #11
prasanth
Guest
 
Posts: n/a
hi stepaine,

why cant you go to the require reference in the fluent documentation using index option.

regarding your query for DEFINE_HEAT_FLUX, please refer section no. 4.3.8 in fluent documentation (6.2. version).
  Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Heat Flux Wall Boundary Confusion. Joee FLUENT 1 August 21, 2010 12:20
heat flow UDF on coupled surface (wall-shadow wall) Friedmann Fluent UDF and Scheme Programming 0 August 5, 2010 10:25
Wall Heat Flux Boundaries conditions Abigail FLUENT 2 July 24, 2007 09:34
CFX - wall heat flux divarano CFX 2 December 4, 2006 17:14
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 19:51.