CFD Online Logo CFD Online URL
Home > Forums > FLUENT

how to solve "parse error'?

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

LinkBack Thread Tools Display Modes
Old   March 9, 2005, 21:00
Default how to solve "parse error'?
Posts: n/a
HI,everyone, My UDF¡¯name is t.c. but when compiling it in FLUENT[3d,segregated,lam],that is, define user-defined functions interpreted my 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.cError: t.c: line 1: parse error. My program is as follow: /************************************************** ********************/ /* 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) }

that is,the computer can not find head files of UDF.Why?? thanks.
  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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing phi from a fvPatchField at same patch johndeas OpenFOAM 1 September 13, 2010 20:23
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 14:43
attach/detach (valve opening/closing) phsieh2005 OpenFOAM Running, Solving & CFD 2 March 21, 2009 06:18
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 21:30
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38

All times are GMT -4. The time now is 13:59.