CFD Online Logo CFD Online URL
Home > Forums > Fluent UDF and Scheme Programming

error in program:

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

LinkBack Thread Tools Display Modes
Old   March 22, 2012, 12:25
Default error in program:
New Member
Join Date: Mar 2012
Location: Puducherry
Posts: 3
Rep Power: 7
mani.rajendiran is on a distinguished road
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
# Generating udf_names.c because of makefile piston1.obj
udf_names.c(7) : error C2059: syntax error : '}'
udf_names.c(8) : warning C4034: sizeof returns 0


could any one help me in getting the correct program.

thank u
mani.rajendiran is offline   Reply With Quote


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
Chemkin Forums? PSR.f program help? johnjohnmulley Main CFD Forum 2 August 5, 2013 07:53
Which opensource and free CAD program? Xwang Main CFD Forum 1 October 24, 2010 17:29
Update boundary conditions calculated by an external program CedricVH OpenFOAM 2 January 15, 2010 12:55
CAE program for heat conducting Rogerio Fernandes Brito FLUENT 0 February 3, 2008 12:22
How to write a simple program ?? kokey FLUENT 0 March 19, 2002 11:21

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