problem about "DEFINE_ADJUST"
5 Attachment(s)
I followed the example in "udf manual" on page 2-6, here's my ndf
------------------------------------------------------------------ #include "udf.h" real x[ND_ND]; DEFINE_ADJUST(adjust1,d) { Thread *t; cell_t c; real K_EL=1.0; if(! Data_Valid_P()) return; thread_loop_c(t,d) { if(FLUID_THREAD_P(t)) { begin_c_loop_all(c,t) { C_UDSI(c,t,0)+=K_EL*NV_MAG2(C_T_G(c,t))*C_VOLUME(c ,t); } end_c_loop_all(c,t) } } } and the setting step is shown below: after compiling Attachment 7001 Attachment 7002 Attachment 7003 Attachment 7004 Attachment 7005 is there any step wrong? |
All times are GMT -4. The time now is 13:31. |