error in program:
hi every I am doing simulation(2d,pressure based) of stirling cryocooler, I got the program for piston and displacer movement, while trying to build the program in fluent I am getting the following error.
the program is as follows #include "udf.h" DEFINE_CG_MOTION (vel_1, dt, vel, omega, time, dtime) { real freq = 20.0; real w = 2.0 * M_PI * freq; real Xcomp = 0.004511; NV_S(vel, = ,0.0); NV_S(omega, = ,0.0); vel[1] = w * Xcomp * cos (w * time); } the error I am getting is as follows 1 file(s) copied. (system "copy "c:\PROGRA~1\ANSYSI~1\v130\fluent"\fluent13.0.0\sr c\makefile_nt.udf "libudf\ntx86\2ddp\makefile" ") 1 file(s) copied. (chdir "libudf")() (chdir "ntx86\2ddp")() # Generating ud_io1.h piston1.c # Generating udf_names.c because of makefile piston1.obj udf_names.c udf_names.c(7) : error C2059: syntax error : '}' udf_names.c(8) : warning C4034: sizeof returns 0 Done. could any one help me in getting the correct program. thank u |
All times are GMT -4. The time now is 10:31. |