Cell Diffusion Calculator Steppable

cellsort2d_negative_J.py

Function:

This python steppable calculates diffusion coefficient of GGH cells by tracking their center of masses. The diffusion coefficient is cluster averaged. This steppable is compatible with periodic boundary conditions.

Summary of the code:

  1. attach a list to cells (type 1)
  2. store the location of CM of cells in the lists (length of the list is equal to dt_max)
  3. if MCS>dt_max(buffering CM locations)

    1. while dt=2^n <= dt_max

      1. calculate and store displacement (d(0,dt)^2/4) during dt interval
  4. average d(0,dt)^2/4 over cells
  5. calculate y(dt)=log2(d(0,dt)^2/4)
  6. calculate x(dt)=log2(2^n)=n
  7. fit a line to y vs. x and calculate slope and intercept
  8. Diffusion constant=2^(intercept)
  9. slope<1 --> sub-diffusive

  10. slope>1 --> super-diffusive

  11. slope=1 --> random walk

CompuCell3D: Workshops/Workshop11/Materials/AbbasHowTo/CellDiffusionCalculator (last edited 2011-08-17 15:15:19 by adsl-108-67-91-209)