|
[Sponsors] |
June 13, 2006, 03:36 |
DEFINE_ON_DEMAND
|
#1 |
Guest
Posts: n/a
|
hi!
first I hope you understand me that i can't speak english well. I saw the DEFINE_ON_DEMAND macro in fluent manual I want to execute the exemple of DEFINE_ON_DEMAND in manual but i have some problems I write UDF like below #include "udf.h" DEFINE_ON_DEMAND(on_demand_calc) { Domain *d; real temp; Thread *t; cell_t c; d=Get_Domain(2); thread_loop_c(t,d) { begin_c_loop(c,t) { temp=C_T(c,t); if (temp>288) temp=temp; } end_c_loop(c,t) begin_c_loop(c,t) { temp=C_T(c,t); C_UDMI(c,t,0)=temp; } end_c_loop(c,t) } } the exemple is consist of DEFINE_ON_DEMAND and C_UDMI macro. according manual the exemple UDF will compute a value and stores it in user-defined memory location 0 the value can be available in the drop-down lists in postprocessing panels. but I don't see the contour of value(=udm-0). all of value is "0" Could you give me process?... as possible as detail (my case is...3D/unsteady) thanks your attention |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|