|
[Sponsors] | |||||
|
|
|
#1 |
|
Guest
Posts: n/a
|
I am having numerous problems trying to get fluent to read my c file. Initially I had the problem of it stating a parse error line 1, now I have moved my case file and c file to the ntx86 folder, and when loading my case it says:
Building... grid, materials, interface, domains, mixture zones, cpp -IC:\FLUENT.INC\fluent6.0/src -IC:\FLUENT.INC\fluent6.0/cortex/src -IC:\FLUENT.INC\fluent6.0/client/src -IC:\FLUENT.INC\fluent6.0/multiport/src -I. -DUDFCONFIG_H="<udfconfig.h>" myprog.cError: myprog.c: line 3: parse error. It says something similar to the last few lines when i try to load the c file in interpreted UDF's. My c file is: #include udf.h DEFINE_PROFILE(inlet_x_velocity, thread, index) { real x[ND_ND]; real y; face_t f; begin_f_loop(f,thread) { F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f, thread, index) = 20. - y*y/(.0745*.745)*20.; } end_f_loop(f,thread) } Thanks for any help! |
|
|
||
|
|
|
#2 |
|
Guest
Posts: n/a
|
Does udf have to be in quotes in #include "udf.c"
Just a thought ? |
|
|
||
|
|
|
#3 |
|
Guest
Posts: n/a
|
Absolutely excellent, it worked! Thankyou!
|
|
|
||
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| parse error while interpreting udf | Kristin | Fluent UDF and Scheme Programming | 3 | March 15, 2012 07:43 |
| A Problem of Fluent Interpreted UDF: parse error | knight | FLUENT | 5 | March 13, 2012 05:23 |
| parse error in transient udf | spring | FLUENT | 1 | July 6, 2010 06:26 |
| UDF parse error at profile function line | Wiggy | Fluent UDF and Scheme Programming | 1 | July 27, 2009 15:59 |
| UDF parse error on line 1 ..... (Unusual) | Amit Maha | FLUENT | 4 | June 30, 2006 12:15 |