|
[Sponsors] |
April 15, 2005, 10:43 |
syntax error on line 1
|
#1 |
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 |
|
April 15, 2005, 11:08 |
Re: syntax error on line 1
|
#2 |
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 |
|
April 15, 2005, 11:17 |
Re: syntax error on line 1
|
#3 |
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 |
|
April 15, 2005, 12:42 |
Re: syntax error on line 1
|
#4 |
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 |
|
April 16, 2005, 12:39 |
Re: syntax error on line 1
|
#5 |
Guest
Posts: n/a
|
do you need to use math.h for sin function?
Swarup |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] Problem with Gmsh | nishant_hull | OpenFOAM Meshing & Mesh Conversion | 23 | August 5, 2015 03: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 05:26 |
[blockMesh] Axisymmetrical mesh | Rasmus Gjesing (Gjesing) | OpenFOAM Meshing & Mesh Conversion | 10 | April 2, 2007 15:00 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 16:16 |