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

udf help

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 27, 2008, 01:21
Default udf help
  #1
brusly
Guest
 
Posts: n/a
hello

i tried to interpret this udf but it gives parse error?can any one give me some sujjestion?this program is in udf manuel fluent 6.2.

#include "udf.h"

DEFINE_INIT(my_init_function, domain) { cell_t c; Thread *thread; real xc[ND_ND];

thread_loop_c (thread,domain)

{

begin_c_loop_all (c,thread)

{

C_CENTROID(xc,c,thread);

if (sqrt(ND_SUM(pow(xc[0] - 0.5,2.),

pow(xc[1] - 0.5,2.),

pow(xc[2] - 0.5,2.))) < 0.25)

C_T(c,thread) = 400.;

else

C_T(c,thread) = 300.;

}

end_c_loop_all (c,thread)

} }

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



All times are GMT -4. The time now is 20:07.