|
[Sponsors] |
November 18, 2007, 18:42 |
problem in UDF
|
#1 |
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 |
|
November 20, 2007, 08:56 |
Re: problem in UDF *NM*
|
#2 |
Guest
Posts: n/a
|
|
|
|
|
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 |