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

problem in UDF

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

Reply
 
LinkBack Thread Tools Display Modes
Old   November 18, 2007, 17:42
Default problem in UDF
  #1
shen
Guest
 
Posts: n/a
Hi,i wrote a UDF as follows # include"udf.h" # include"math.h" # define A -0.262 # define T 31.4 # define OM(2.0*PI/T) DEFINE_CG_MOTION(updown,dt,vel,omega,time,dtime) { vel[1] = A*OM*sin(OM*time + 0.105); }

but when i transfer it ,fluent says

angular.c ..\..\src\angular.c(5) : error C2010: '2' : unexpected in macro formal parameter list ..\..\src\angular.c(5) : error C2010: '.' : unexpected in macro formal parameter list ..\..\src\angular.c(5) : error C2010: '0' : unexpected in macro formal parameter list ..\..\src\angular.c(5) : error C2010: '*' : unexpected in macro formal parameter list ..\..\src\angular.c(5) : error C2010: '/' : unexpected in macro formal parameter list ..\..\src\angular.c(5) : error C2010: 'T' : unexpected in macro formal parameter list ..\..\src\angular.c(8) : error C2065: 'OM' : undeclared identifier

how can i solve it? Thank you
  Reply With Quote

Old   November 20, 2007, 07:56
Default Re: problem in UDF *NM*
  #2
mohsen
Guest
 
Posts: n/a
  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
ATTN ALL: SOLUTON TO UDF COMPILE PROBLEM Rizwan Fluent UDF and Scheme Programming 30 March 21, 2014 06:34
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 06:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 07:14
UDF problem chiseung FLUENT 4 January 10, 2002 09:58


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