|
[Sponsors] |
January 30, 2008, 06:47 |
UDF problems - velocity profile
|
#1 |
Guest
Posts: n/a
|
Hi everybody.
I'm trying to create a non uniform velocity profile at inlet ; the same as you can find it in the Fluent Docs. The source code is #include "udf.h" DEFINE_PROFILE(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) = 30.0-30.0*(y*y)/(1.5*1.5) } end_f_loop(f,thread) } now i try to compile the source code --> Define --> User Defined Functions --> Interpreted (as it is shown in the Fluent Docu) But I always get the error : Error: /.../... : line 2 : syntax Error Do i overlook something? Fluent is running on a Linux operating system. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
(ask) how to create UDF for inlet velocity profile | sincity | Fluent UDF and Scheme Programming | 83 | May 16, 2022 13:04 |
UDF parallel velocity inlet profile | Armengol | FLUENT | 3 | September 30, 2009 15:08 |
Prescribed inflow velocity profile - how to? | Alan | Main CFD Forum | 10 | October 28, 2005 12:14 |
UDF velocity profile problem | Steve | FLUENT | 0 | January 18, 2005 12:11 |
UDF problem : inlet velocity in cyl. coord. system | Jongdae Kim | FLUENT | 0 | June 15, 2004 11:21 |