|
[Sponsors] |
May 12, 2010, 12:38 |
UDF parse error
|
#1 |
New Member
Join Date: Nov 2009
Posts: 4
Rep Power: 17 |
Hello, I´m trying to interpret an UDF that changes the value of the roughness constant:
I have the error: "line 2: parse error".#include "udf.h" I´ve tried to interpret it from "Fluent.Inc/ntbin/ntx86" too and I have the same result. Help me please! P.S.: I think I have used the same UDF before and it worked. |
|
May 12, 2010, 13:01 |
|
#2 |
New Member
Tez
Join Date: Oct 2009
Posts: 12
Rep Power: 17 |
I don't see any error in your code.
Depending upon your fluent version, Cs might be an internal variable/or function in fluent. You could change it to something else and try. |
|
May 12, 2010, 13:20 |
|
#3 |
New Member
Join Date: Nov 2009
Posts: 4
Rep Power: 17 |
I changed Cs, [DEFINE_PROFILE(XXX,t,i)], and still have the problem.
The line 2 is the line under #include "udf.h" and it´s a blank line. If I insert another lines at the start of the UDF, the error always appears in the same line, under #include "udf.h". |
|
May 12, 2010, 13:45 |
|
#4 |
New Member
Tez
Join Date: Oct 2009
Posts: 12
Rep Power: 17 |
Your code compiles in my machine. I am using a 64 bit linux compiler. Have you compiled other UDFs successfully? Your problem could be compiler related.
|
|
May 14, 2010, 08:12 |
|
#5 | |
New Member
Join Date: Nov 2009
Posts: 4
Rep Power: 17 |
Quote:
Yes, I have compiled other UDF´s in the same machine succesfully. The machine es a 64 bit linux too. However, I´ve tried to compile this UDF in other machines and it doesn´t work. I think I´m doing it well: Fluent 3ddp |
||
Tags |
parse error, roughness, udf |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 19:54 |
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found | piprus | OpenFOAM Installation | 22 | February 25, 2010 14:43 |
[swak4Foam] groovyBC: problems compiling: "flex: not found" and "undefined reference to ..." | sega | OpenFOAM Community Contributions | 12 | February 17, 2010 10:30 |
Installation OF1.5-dev | ttdtud | OpenFOAM Installation | 46 | May 5, 2009 03:32 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |