|
[Sponsors] |
August 30, 2011, 05:30 |
udf little eror
|
#1 |
New Member
rezvan
Join Date: Aug 2011
Location: Mashhad,iran
Posts: 10
Rep Power: 15 |
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? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
udf eror + Define property + density | rezvan | Fluent UDF and Scheme Programming | 10 | July 10, 2015 05:30 |
UDF parallel error: chip-exec: function not found????? | shankara.2 | Fluent UDF and Scheme Programming | 1 | January 16, 2012 23:14 |
How to add a UDF to a compiled UDF library | kim | FLUENT | 3 | October 26, 2011 22:38 |
UDF...UDF...UDF...UDF | Luc SEMINEL | FLUENT | 0 | November 25, 2002 05:03 |
UDF, UDF, UDF, UDF | Luc SEMINEL | Main CFD Forum | 0 | November 25, 2002 05:01 |