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

syntax error on line 1

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 15, 2005, 09:43
Default syntax error on line 1
  #1
Radboud
Guest
 
Posts: n/a
Dear reader,

We have recently updated to fluent 6.2.16 from 6.1.22, and my udf, although it ran before, no longer compiles (interpreted mode). I receive a syntax error on line 1, which is a comment line. If I take away this line a syntax error is reported on the DEFINE_PROFILE line (see code below). The udf.h is in the default folder, and my case . We run Fluent on a linux machine.

/* comment */ #include "udf.h" DEFINE_PROFILE(unsteady_velocity, thread, position) { face_t f; real t = CURRENT_TIME; real pi; pi=3.14159265358979; begin_f_loop(f, thread) {

F_PROFILE(f, thread, position) = .04*sin(2*pi*t); } end_f_loop(f, thread) }

I hope someone can help me, thanks in advance

Radboud
  Reply With Quote

Old   April 15, 2005, 10:08
Default Re: syntax error on line 1
  #2
rom
Guest
 
Posts: n/a
i tried your udf on my winxp flu 6.2.16 machine and it worked in interpreted mode. your problem must be somwhere else.

rom
  Reply With Quote

Old   April 15, 2005, 10:17
Default Re: syntax error on line 1
  #3
Radboud
Guest
 
Posts: n/a
thanks for trying, I appreciate the effort. A likely guess would be a problem with our upgrade, but if anyone has other ideas, I'd be interested in hearing them.

best regards

Radboud
  Reply With Quote

Old   April 15, 2005, 11:42
Default Re: syntax error on line 1
  #4
Ale
Guest
 
Posts: n/a
Hi

I tried to interpret your code on Windows Fluent 6.1.22 and had no problems. I think the problem is not your UDF, but something wrong with the interpreter. Check the intepreting procedure in unix.

Regards,

Ale
  Reply With Quote

Old   April 16, 2005, 11:39
Default Re: syntax error on line 1
  #5
Swarup
Guest
 
Posts: n/a
do you need to use math.h for sin function?

Swarup
  Reply With Quote

Reply

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
Problem with Gmsh nishant_hull Open Source Meshers: Gmsh, Netgen, CGNS, ... 23 August 5, 2015 02:09
OpenFOAM 1.7.1 installation problem on OpenSUSE 11.3 flakid OpenFOAM Installation 16 December 28, 2010 09:48
Regarding FoamX running Kindly help out hariya03 OpenFOAM Pre-Processing 0 April 18, 2008 04:26
Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Native Meshers: blockMesh 10 April 2, 2007 14:00
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


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