How to let type B cells move actively to type C cells


25
views
0
6 days ago by
In a 3D model,at first, there were two types of cells, A and C, and A cells became B cells after a period of time. I want B cells move actively to type C cells. I already use focal point plasticity plugin like this:
<Plugin Name="FocalPointPlasticity">
    <Parameters Type1="B" Type2="C">
    <Lambda>20</Lambda>
    <ActivationEnergy>-50</ActivationEnergy>
    <TargetDistance>5</TargetDistance>
    <MaxDistance>10</MaxDistance>
    <MaxNumberOfJunctions>2</MaxNumberOfJunctions>
    </Parameters>
</Plugin>
But after A cells became B cells, B cells does not move to C cells. B and C cells are about 40 pixel apart
Community: CompuCell3D

1 Answer


0
6 days ago by
The maximum distance sets the 'max' distance over which links will exist. If they are 40 pixels apart, a link won't form automatically cause it is limited by 10 here. This is an example of how I could set up a link between two arbitrary cells-

#Main python file, could be xml script
#Have commented lambda,target and max distance so can modify them later
PluginElmnt_3=CompuCell3DElmnt.ElementCC3D("Plugin",{"Name":"FocalPointPlasticity"})
  
ParametersElmnt_1=PluginElmnt_3.ElementCC3D("Parameters",{"Type1":"cellb","Type2":"cellc"})
#ParametersElmnt_1.ElementCC3D("Lambda",{},"20")
ParametersElmnt_1.ElementCC3D("ActivationEnergy",{},"-150")
#ParametersElmnt_1.ElementCC3D("TargetDistance",{},"5")
#ParametersElmnt_1.ElementCC3D("MaxDistance",{},"10")
ParametersElmnt_1.ElementCC3D("MaxNumberOfJunctions",{"NeighborOrder":"6"},"1")
#########################################################################

#Steppable file
#create cellc and cellb arbitrary
#form links
dist=sqrt((cellb.xCOM-cellc.xCOM)**2+(cellb.yCOM-cellc.yCOM)**2)
self.Lam=20
self.focalPointPlasticityPlugin.createFocalPointPlasticityLink(cellb,cellc, self.Lam,dist,self.dim.y)#max target length determines the max limit of the link​
Please login to add an answer/comment or follow this question.

Similar posts:
Search »