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

udf fluent (lookup_thread)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 11, 2013, 06:19
Question udf fluent (lookup_thread)
  #1
New Member
 
amirhossein
Join Date: May 2013
Posts: 1
Rep Power: 0
amirhossein.faraji is on a distinguished road
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)
}
amirhossein.faraji is offline   Reply With Quote

Reply

Tags
lookup_thread


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
fluent udf, saving data in udf mohsen zendehbad Fluent UDF and Scheme Programming 15 June 14, 2017 00:23
Transient pressure UDF for parallel fluent droberts Fluent UDF and Scheme Programming 5 October 11, 2010 05:13
Using Fluent with a UDF frm a remote m/c aarti FLUENT 2 September 11, 2008 20:53
UDF problem caused by various version of Fluent Yurong FLUENT 3 January 15, 2006 11:57
Can somebody send me a Fluent 6 UDF manual?? KKLAU FLUENT 4 April 14, 2004 17:37


All times are GMT -4. The time now is 20:08.