|
[Sponsors] |
April 14, 2017, 17:14 |
Y-plus macro Fluent
|
#1 |
Senior Member
ali
Join Date: Oct 2009
Posts: 318
Rep Power: 17 |
Hi all,
I have a problem, I have written the following UDF to calculate and store y+ in a UDM. The problem is it returns zero. Any ideas why? ------------------------------------------------- #include "udf.h" DEFINE_ON_DEMAND(y_plus){ Domain *d; real y_p; face_t f; cell_t c, c0; Thread *t,*t0, *c_thread; int Zone_ID=12; /* Zone ID of the wall on which y+ has to be calculated */ d=Get_Domain(ROOT_DOMAIN_ID); /* Initialize the UDM value to zero in complete domain */ thread_loop_c(c_thread,d) { begin_c_loop(c, c_thread){ C_UDMI(c,c_thread,3)= 0; } end_c_loop(c, c_thread) } /* Calculate y+ and store them in UDM */ t=Lookup_Thread(d,Zone_ID); begin_c_loop(c, t){ y_p = C_STORAGE_R(f,t, SV_WALL_YPLUS); C_UDMI(c,t,3)= y_p; } end_c_loop(c, t) } /* *********************************************** */ |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Interesting problem: Parallel Processor VOF Fluent + Dynamic Mesh + System Coupling | spaceprop | FLUENT | 5 | September 2, 2014 09:43 |
The fluent stopped and errors with "Emergency: received SIGHUP signal" | yuyuxuan | FLUENT | 0 | December 3, 2013 22:56 |
Error in reading Fluent 13 case file in fluent 12 | apurv | FLUENT | 2 | July 12, 2013 07:46 |
On Bug of Fluent 12.0 | lzgwhy | FLUENT | 0 | August 26, 2009 06:41 |
is C_Centroid_X a MACRO of FLUENT | wanghong | FLUENT | 1 | February 27, 2006 07:25 |