Posted by: william
« on: April 25, 2012, 10:20:03 AM »You can get the cell pointer and thread pointer using the following inside DEFINE_DPM_DRAG:
cell_t c = RP_CELL(&(p->cCell));
Thread *t = RP_THREAD(&(p->cCell));
Once you know the thread and cell containing the particle you can calculate the cell DPM concentration using:
C_DPMS_CONCENTRATION(c,t);
cell_t c = RP_CELL(&(p->cCell));
Thread *t = RP_THREAD(&(p->cCell));
Once you know the thread and cell containing the particle you can calculate the cell DPM concentration using:
C_DPMS_CONCENTRATION(c,t);