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

parse error in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 11, 2012, 03:32
Default parse error in UDF
  #1
New Member
 
n7310889
Join Date: Aug 2012
Posts: 26
Rep Power: 13
n7310889 is on a distinguished road
Hi,
To calculate radiation loss from wall boundary of a fluid domain, I have used following code in my macro:
DEFINE_PROFILE(heat_profile,thread,index)
{
Domain *d =Get_Domain(1);

real x[ND_ND];
real r,theta,angle;
real temp_glass, temp_wall, rad_loss_coefficient, rad_loss, irradiation_factor, input_heat_flux;
face_t f;
Thread *t0 =Lookup_Thread(d,9);


begin_f_loop(f,thread)
{
F_CENTROID(x,f,thread);

temp_wall =F_T(f,t0);
temp_glass =
TEMP_ABSOLUTE+TEMP_GLASS;

rad_loss_coefficient =6.1803exp(-6)/(109+3430*CARMET_EMISSIVITY);
rad_loss =rad_loss_constant*(pow(T_wall,4)-pow(T_glass,4));



However, always fluent shows parse error in the blue line. I don't understand whats going wrong. The attached is the complete UDF.
Could you please help me to sort out the bug.
Thanks a lot

Last edited by n7310889; September 12, 2012 at 03:54.
n7310889 is offline   Reply With Quote

Reply


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
parse error while interpreting udf Kristin Fluent UDF and Scheme Programming 3 March 15, 2012 06:43
parse error in transient udf spring FLUENT 1 July 6, 2010 06:26
UDF parse error at profile function line Wiggy Fluent UDF and Scheme Programming 1 July 27, 2009 15:59
Parse Error Message While interpreting UDF in FLUENT dhimans Fluent UDF and Scheme Programming 1 July 10, 2009 06:29
UDF parse error on line 1 ..... (Unusual) Amit Maha FLUENT 4 June 30, 2006 12:15


All times are GMT -4. The time now is 18:30.