|
[Sponsors] |
July 2, 2007, 15:23 |
udf
|
#1 |
Guest
Posts: n/a
|
Hi,every body. I want to do an udf example suggested by fluent 6.1 udf manual as follow ,but while iterpreting this message is appearmy fluent is 6.0.12) 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>" f:\udfexample.cError: f:\udfexample.c: line 1: parse error. may any one help me.
/************************************************** ******** udfexample.c UDF for specifying a steady-state velocity profile boundary condition ************************************************** ********/ #Include "udf.h" /* must be at the beginning of every UDF you write */ DEFINE_PROFILE(inlet_x_velocity, thread, index) { real x[ND_ND]; /* this will hold the position vector */ real y; face_t f; begin_f_loop(f, thread) /* lo.over all f. in the th. Pa. in the DE.macro argument*/ } F_CENTROID(x,f,thread); y = x[1]; F_PROFILE(f, thread, index) = 20. - y*y/(.0745*.0745)*20; } end_f_loop(f, thread) } |
|
July 2, 2007, 22:48 |
Re: udf
|
#2 |
Guest
Posts: n/a
|
You have a try... change Capital "I" in "#include" to "i"; change first "}" to "{".
By the way, the sequence of definition of variables in UDF is sensitive according to my experience. |
|
July 3, 2007, 07:30 |
Re: udf
|
#3 |
Guest
Posts: n/a
|
Hi,braket thanks for reply. i done your suggestion but the error is repeated.if the errore may be from my fluent version(6.0.12)? for example my graphical user intrface is diffrent from which is shone in fluent(6.1)help.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Dynamic Mesh UDF | Qureshi | FLUENT | 7 | March 23, 2017 08:37 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |