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

udf little eror

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 30, 2011, 04:30
Smile udf little eror
  #1
New Member
 
rezvan
Join Date: Aug 2011
Location: Mashhad,iran
Posts: 10
Rep Power: 14
rezvan is on a distinguished road
hi,I want to assign a high density (infinity) to a region of my 2D model.
I have writen the following code;

#include "udf.h"
DEFINE_PROPERTY(cell_density, cell, thread)
{
real density;
real grid_y = NODE_Y(cell, threads);
real grid_x = NODE_X(cell, threads);
if ( grid_x >= 30. && grid_x <= 40. )
{
if ( grid_y >= 10. && grid_y <= 20. )
{
density =1000000000;
}
}
}


but I have received the following error:

line 5: macro `NODE_Y' used with too many (2) args

can anyone help me with it?
rezvan is offline   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
udf eror + Define property + density rezvan Fluent UDF and Scheme Programming 10 July 10, 2015 04:30
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 22:52.