CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   how to solve "parse error" (https://www.cfd-online.com/Forums/fluent/35961-how-solve-parse-error.html)

wanghong March 7, 2005 21:30

how to solve "parse error"
 
hi,everyone, My UDF¡¯name is t.c., but when compiling it in FLUENT[3d,segregated,lam],that is, define--- user-defined------ functions -----interpreted,the computer give me following information: Cpp--IC:\FLUENT.INC\FLUENT\fluent6.0/src - IC:\FLUENT.INC\FLUENT\fluent6.0/cortex/src -IC:\FLUENT.INC\FLUENT\fluent6.0/client/src -IC:\FLUENT.INC\FLUENT\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" t.c Error: t.c: line 1: parse error.

Who can its reason? HOW TO deal with it?help please!


Y March 8, 2005 05:55

Re: how to solve "parse error"
 
Why do not publish this code here we can check it and give your the feedback about the problem

wanghong March 8, 2005 19:54

Re: how to solve "parse error"
 
my code is as following: /************************************************** ********************/ /* unsteady.c */ /* UDF for specifying a transient velocity profile boundary condition */ /************************************************** ********************/ #include "udf.h" DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; begin_f_loop(f, thread) { real t = RP_Get_Real("flow-time"); F_PROFILE(f, thread, position) = 20. + 5.0*sin(10.*t); } end_f_loop(f, thread) }


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