|
[Sponsors] |
November 7, 2013, 05:04 |
UDF DEFINE_ON_DEMAND set uds value to zero
|
#1 |
New Member
Charles Gao
Join Date: Oct 2013
Posts: 1
Rep Power: 0 |
Hello, everyone. I use an UDF to set the Ultraviolet fluence rate (Concentration) to zero at selected region. But it didn't work at the region near the wall. (The middle of the region is zero, but the near wall region is not zero). Here is the code:
DEFINE_ON_DEMAND(set_UV) { Domain *d ; Thread *t ; cell_t c ; real coord[ND_ND], Z_low = 1.8, Z_high = 2.6 ; { d=Get_Domain(1); thread_loop_c(t,d) { begin_c_loop(c,t) { /* restrict the Fluence rate to zero outside the irradiation zone */ C_CENTROID(coord,c,t) ; if ( (coord[2] < Z_low) || (coord[2] > Z_high) ) C_UDSI(c,t,0) = 0 ; } end_c_loop(c,t); } } } |
|
Tags |
concentration, udf, uds, ultraviolet |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
uds flux - drift velocity - udf | johnwinter | Fluent UDF and Scheme Programming | 3 | November 25, 2017 05:07 |
unsteady udf for concentration uds | borhan_sd@yahoo.com | Fluent UDF and Scheme Programming | 0 | July 15, 2013 04:32 |
Consulting for some issues of FLUENT UDF and UDS | wjl163 | Fluent UDF and Scheme Programming | 2 | November 12, 2012 04:24 |
connection between udf and uds | a.maroofi | Fluent UDF and Scheme Programming | 1 | September 19, 2010 09:46 |
Associating profile files for the UDS though a UDF | Bharath | FLUENT | 0 | December 1, 2006 16:58 |