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

error of compilling udf

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   January 10, 2005, 21:58
Default error of compilling udf
  #1
wanghong
Guest
 
Posts: n/a
hi my program of udf is following:

#include "udf.h" DEFINE_PROFILE(inlet_x_velocity, thread, position) { real x[ND_ND]; real y; face_t f; begin_f_loop(f, thread) { F_CENTROID(x,f,thread); z = x[1]; F_PROFILE(f, thread, position) = -43478.26*z*z-291.30*z+1.00; } end_f_loop(f, thread) }

when i compile the C program,my compter tell me there is an error.i want to know "why?"

pls help!
  Reply With Quote

Old   January 11, 2005, 07:38
Default Re: error of compilling udf
  #2
xosef
Guest
 
Posts: n/a
You have to declare your variable z before you use it. You defined y instead of z!

maybe this is the error ?!
  Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
UDF compilling error Lightning FLUENT 0 June 16, 2010 09:07
UDF compilling 1986 FLUENT 4 April 3, 2010 09:10
About Compilling The UDF Seyed Farid Hosseinizadeh FLUENT 0 February 15, 2006 22:22
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03


All times are GMT -4. The time now is 08:15.