|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
amirhossein
Join Date: May 2013
Posts: 1
Rep Power: 0 ![]() |
hi
I write a simple udf as below to test the use of lookup_thread macro. Before I compile my UDF also allocate the one memory location in the User-Defined Memory panel in FLUENT. I also get the integer ID of the zone (boundary wall) by visiting the boundary condition panel. It was 8. But when i run my program and then go to Disply panel for seeing User Memory 0, all values of that is zero (not 200). what is the proplem???? ![]() please help me. #include "udf.h" DEFINE_EXECUTE_AT_END(test_lookup) { Domain *d; Thread *tf; face_t f; d = Get_Domain(1); tf= Lookup_Thread(d,8); begin_f_loop(f,tf) { F_UDMI(f,tf,0)= 200.0; } end_f_loop(f,tf) } |
|
|
|
|
|
![]() |
| Tags |
| lookup_thread |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| fluent udf, saving data in udf | mohsen zendehbad | Fluent UDF and Scheme Programming | 10 | February 26, 2013 04:38 |
| Transient pressure UDF for parallel fluent | droberts | Fluent UDF and Scheme Programming | 5 | October 11, 2010 04:13 |
| Using Fluent with a UDF frm a remote m/c | aarti | FLUENT | 2 | September 11, 2008 19:53 |
| UDF problem caused by various version of Fluent | Yurong | FLUENT | 3 | January 15, 2006 10:57 |
| Can somebody send me a Fluent 6 UDF manual?? | KKLAU | FLUENT | 4 | April 14, 2004 16:37 |