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

udf little eror

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 30, 2011, 04:30
Smile udf little eror
  #1
New Member
 
rezvan
Join Date: Aug 2011
Location: Mashhad,iran
Posts: 9
Rep Power: 5
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

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 22:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
udf eror + Define property + density rezvan Fluent UDF and Scheme Programming 9 August 30, 2011 08:12
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:29.