CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

udf

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 2, 2007, 14:23
Default udf
  #1
Ali Tavakoli
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) }

  Reply With Quote

Old   July 2, 2007, 21:48
Default Re: udf
  #2
braket
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.
  Reply With Quote

Old   July 3, 2007, 06:30
Default Re: udf
  #3
Ali Tavakoli
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.

  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic Mesh UDF Qureshi FLUENT 7 March 23, 2017 07:37
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 04:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 04:01


All times are GMT -4. The time now is 16:46.