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

problem in UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2007, 18: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, 08:56
Default Re: problem in UDF *NM*
  #2
mohsen
Guest
 
Posts: n/a
  Reply With Quote

Reply


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 Off
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 40 March 18, 2018 07:05
Problem with my udf july Fluent UDF and Scheme Programming 3 June 20, 2010 07:56
UDF problem mansha goraya FLUENT 0 October 29, 2007 01:31
udf compiling problem akr FLUENT 3 August 22, 2007 08:14
UDF problem chiseung FLUENT 4 January 10, 2002 10:58


All times are GMT -4. The time now is 00:24.