CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   DPM drag force UDF (http://www.cfd-online.com/Forums/fluent/31093-dpm-drag-force-udf.html)

hedonists March 12, 2003 22:10

DPM drag force UDF
 
Hi, I am doing submicron particle trajectory calculation. I need to write a UDF for the drag foce with a variable slip correction factor (a function of local temperature and pressure.) Do you know how to obtain the pressure and temperature at the current particle position and current time step? I tried to use the following, but it does not seem to work. Why?

cell_t c = RP_CELL(&p->cCell); Thread *t = RP_THREAD(&p->cCell); real pressure=C_P(c,t); real temp=C_T(c,t);

Thanks in advance! hedonist


All times are GMT -4. The time now is 08:34.