|
[Sponsors] |
January 21, 2006, 08:10 |
Parse error
|
#1 |
Guest
Posts: n/a
|
Hi. I'm trying to interpret a UDF in Fluent 6.2, but I get an error message:
"cpp -IC:\Fluent.Inc\fluent6.2.16/src -IC:\Fluent.Inc\fluent6.2.16/cortex/src -IC:\Fluent.Inc\fluent6.2.16/client/src -IC:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\Fluent.Inc\Ejemplos Fluent\pexit.c Error: C:\Fluent.Inc\Ejemplos Fluent\pexit.c: line 1: parse error." If i use the Contributed CPP option, the error message is the same: "C:\Fluent.Inc tbin tx86\cpp.exe -IC:\Fluent.Inc\fluent6.2.16/src -IC:\Fluent.Inc\fluent6.2.16/cortex/src -IC:\Fluent.Inc\fluent6.2.16/client/src -IC:\Fluent.Inc\fluent6.2.16/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" C:\Fluent.Inc\Ejemplos Fluent\pexit.c Error: C:\Fluent.Inc\Ejemplos Fluent\pexit.c: line 1: parse error." The UDF I'm trying to interpret is the following (it comes from the Fluent tutorials): #include "udf.h" DEFINE_PROFILE(unsteady_pressure, thread, position) { float t, pressure; face_t f; t = RP_Get_Real("flow-time"); pressure = (0.12*sin(2200*t)+0.737)*101325.0; begin_f_loop(f, thread) { F_PROFILE(f, thread, position) = pressure; } end_f_loop(f, thread) } I've been reading all the posts about this same problem, but I haven't found a solution. The UDF is in the same folder as the case files, but I always get the same error. Can anybody help me? |
|
January 21, 2006, 09:57 |
Re: Parse error
|
#2 |
Guest
Posts: n/a
|
Advise you to delete space in the name of current folder. Lucky!
LCW |
|
January 21, 2006, 13:55 |
Re: Parse error
|
#3 |
Guest
Posts: n/a
|
Uf, thanks very much, LCW, I was becoming crazy!
Fer |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] Native ParaView Reader Bugs | tj22 | ParaView | 270 | January 4, 2016 12:39 |
nonNewtonian viscosity model | mhassani | OpenFOAM Programming & Development | 5 | January 7, 2013 10:27 |
Accessing phi from a fvPatchField at same patch | johndeas | OpenFOAM | 1 | September 13, 2010 21:23 |
compile errors of boundary condition "expDirectionMixed" | liying02ts | OpenFOAM Bugs | 2 | February 1, 2010 21:11 |
user defined function | cfduser | CFX | 0 | April 29, 2006 11:58 |