CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

souce term-error in both "interpreting and compiling"

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

LinkBack Thread Tools Display Modes
Old   June 10, 2013, 07:39
Default souce term-error in both "interpreting and compiling"
Senior Member
Join Date: Mar 2013
Location: EU
Posts: 103
Rep Power: 0
ahvz is on a distinguished road
when I interpreting the code I receiving :
two "parse error" for the highlighted lines . what is wrong in the code?

#include "udf.h"
real source; 
if(N_TIME > 0) 
if (C_T(c,t) > C_T_M1(c,t)) 
if (C_T_(c,t)<=297. && C_T(c,t)>=287.) 
source =(-0.0235*pow(temp,3.))+(20.246*pow(temp,2.))-(5816.7*pow(temp,1.))+557045;  
dS[eqn] =(-0.0705*pow(temp,2.))+(40.492*pow(temp,1.))-5816.7 ; 
else if (C_T(c,t) < C_T_M1(c,t)) 
if (C_T_M1(c,t) <= 285.0 && C_T(c,t) >= 297.0) 
source =(-0.0227*pow(temp,3.))+(19.483*pow(temp,2.))-(5568.7*pow(temp,1.))+530603;
dS[eqn] =(-0.0681*pow(temp,2.))-(38.966*pow(temp,1.))-5568.7; 
return source; 
when I compiling the code I reciving the below errors
..\..\src\test.c(36) : warning C4003: not enough actual parameters for macro 'C_T_'
..\..\src\test.c(36) : error C2059: syntax error : ')'
..\..\src\test.c(51) : error C2059: syntax error : 'return'
..\..\src\test.c(52) : error C2059: syntax error : '}'

any helps ?
ahvz is offline   Reply With Quote


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 14:09.