CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (http://www.cfd-online.com/Forums/fluent-udf/)
-   -   parse error in UDF (http://www.cfd-online.com/Forums/fluent-udf/106857-parse-error-udf.html)

n7310889 September 11, 2012 03:32

parse error in UDF
 
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


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