Attachment 'ChemicalFieldsSteppables.py'

Download

   1 from PySteppables import *
   2 import CompuCell
   3 import sys
   4 class ChemicalFieldsSteppable(SteppableBasePy):    
   5 
   6     def __init__(self,_simulator,_frequency=1):
   7         SteppableBasePy.__init__(self,_simulator,_frequency)
   8     def start(self):
   9         # iterating over all cells in simulation        
  10         for cell in self.cellList:
  11             cell.targetVolume=25
  12             cell.lambdaVolume = 10.0
  13                                  
  14     def step(self,mcs):        
  15         field=self.getConcentrationField("GLU")
  16         
  17         for cell in self.cellList:
  18             if cell.type == self.TUMOR:
  19                 print 'self.TUMOR=',self.TUMOR
  20                 print 'id=',cell.id,' com_conc',\
  21                 field[int(cell.xCOM),int(cell.yCOM),0]
  22         
  23         
  24         
  25         
  26         
  27     def finish(self):
  28         # Finish Function gets called after the last MCS
  29         pass
  30         

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2015-03-09 19:09:36, 2.9 KB) [[attachment:Angio.zip]]
  • [get | view] (2015-03-11 18:54:07, 3.8 KB) [[attachment:CellAttributes.zip]]
  • [get | view] (2015-03-04 20:05:46, 0.9 KB) [[attachment:ChemicalFieldsSteppables.py]]
  • [get | view] (2015-03-04 20:12:00, 2.2 KB) [[attachment:Chemotaxis.xml]]
  • [get | view] (2015-03-09 18:07:56, 3.1 KB) [[attachment:Chemotaxis.zip]]
  • [get | view] (2015-03-11 19:24:12, 3.7 KB) [[attachment:MitosisTracker.zip]]
  • [get | view] (2015-03-23 19:33:22, 2.9 KB) [[attachment:MitosisTracker_2.zip]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.