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

error in program:

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 22, 2012, 12:25
Default error in program:
  #1
New Member
 
MANIMARAN.R
Join Date: Mar 2012
Location: Puducherry
Posts: 3
Rep Power: 14
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
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
mani.rajendiran is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
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 08:53
Which opensource and free CAD program? Xwang Main CFD Forum 1 October 24, 2010 18: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 21:19.