|
[Sponsors] |
March 23, 2011, 05:47 |
problem about "DEFINE_ADJUST"
|
#1 |
New Member
tom pan
Join Date: Nov 2010
Posts: 14
Rep Power: 16 |
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 1.jpg 2.jpg 3.jpg 4.jpg 5.jpg is there any step wrong? |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Incoherent problem table in hollow-fiber spinning | Gianni | FLUENT | 0 | April 5, 2008 11:33 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |