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

my fault about UDF

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2006, 01:05
Default my fault about UDF
  #1
Seyed Farid Hosseinizadeh
Guest
 
Posts: n/a
Hi everyone, Could you please send me your points about my UDF file. I recieve an error about variable "n". #include "udf.h" "Error: adjust1.c: line 18: non-integer subscript expression: unsigned char." Regards,

DEFINE_ADJUST(unsteady_temperature, d) {

float x1,y1; face_t f; cell_t c; Thread *t; int i,n; Node *v;

i=0; begin_c_loop(c,t)

{

c_node_loop(c, t, n)

{

v = C_NODE(c,t,n);

x1 = NODE_X(v)

printf("faridd: %g\n",x1);

}

} end_c_loop(c,t) }
  Reply With Quote

Old   February 5, 2006, 03:55
Default Re: my fault about UDF
  #2
RoM
Guest
 
Posts: n/a
No #include udf.h" at the top

Use "real" instead of "float" or "double"

Missing semicolon at end of line x1=NODE_X(v)

Some udfs will not run in interpreted mode. If the interpreter still fails try to compile.

RoM
  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 10:41.