CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

how to solve "parse error"

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

Reply
 
LinkBack Thread Tools Display Modes
Old   March 7, 2005, 22:30
Default how to solve "parse error"
  #1
wanghong
Guest
 
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,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!

  Reply With Quote

Old   March 8, 2005, 06:55
Default Re: how to solve "parse error"
  #2
Y
Guest
 
Posts: n/a
Why do not publish this code here we can check it and give your the feedback about the problem
  Reply With Quote

Old   March 8, 2005, 20:54
Default Re: how to solve "parse error"
  #3
wanghong
Guest
 
Posts: n/a
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) }
  Reply With Quote

Reply

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
Solve Flow or VOF simultaneously ? Ramsey FLUENT 1 February 16, 2011 14:16
Linearized NS euqations: how to solve them?(problem with Matrix operations..) matteoL OpenFOAM Running, Solving & CFD 0 November 18, 2009 07:58
Solve for two or more "Temperatures" Rui CFX 12 September 9, 2008 21:58
how to solve "parse error'? wanghong FLUENT 0 March 9, 2005 21:00
How to solve another continuum and momentum eqn? west_wing FLUENT 0 August 25, 2003 10:00


All times are GMT -4. The time now is 09:47.