{"Name": "ExternalPotential"})
    externalPotential.ElementCC3D("Lambda", {"x": -10, "y": 0, "z": 0})

    pifInitializer = cc3d.ElementCC3D("Steppable", {"Type": "PIFInitializer"})
    pifInitializer.ElementCC3D("PIFName", {}, "Simulation/elasticitytest.piff")

    CompuCellSetup.setSimulationXMLDescription(cc3d)


import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])

import CompuCellSetup

sim, simthread = CompuCellSetup.getCoreSimulationObjects()

configureSimulation(sim)

CompuCellSetup.initializeSimulationObjects(sim, simthread)

from PySteppables import SteppableRegistry
steppableRegistry = SteppableRegistry()

from elasticitytestSteppables import ElasticityLocalSteppable
elasticitySteppable = ElasticityLocalSteppable(_simulator=sim, _frequency=50)
steppableRegistry.registerSteppable(elasticitySteppable)

CompuCellSetup.mainLoop(sim, simthread, steppableRegistry)
Exemplo n.º 2
0
import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])

import CompuCellSetup
CompuCellSetup.setSimulationXMLFileName("Simulation/ConnectivityTest.xml")
sim,simthread = CompuCellSetup.getCoreSimulationObjects()

CompuCellSetup.initializeSimulationObjects(sim,simthread)

from PySteppables import SteppableRegistry
steppableRegistry=SteppableRegistry()

from ConnectivityElongationSteppable import ConnectivityElongationSteppable
connectivityElongationSteppable=ConnectivityElongationSteppable(_simulator=sim,_frequency=50)
steppableRegistry.registerSteppable(connectivityElongationSteppable)

CompuCellSetup.mainLoop(sim,simthread,steppableRegistry)

import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])

import CompuCellSetup
CompuCellSetup.setSimulationXMLFileName("Simulation/elongationFlexTest.xml")
sim, simthread = CompuCellSetup.getCoreSimulationObjects()

CompuCellSetup.initializeSimulationObjects(sim, simthread)

from PySteppables import SteppableRegistry
steppableRegistry = SteppableRegistry()

from elongationFlexSteppables import ElongationFlexSteppable
elongationFlexSteppable = ElongationFlexSteppable(_simulator=sim,
                                                  _frequency=50)
steppableRegistry.registerSteppable(elongationFlexSteppable)

CompuCellSetup.mainLoop(sim, simthread, steppableRegistry)
Exemplo n.º 4
0
    flexDiffSolver = cc3d.ElementCC3D("Steppable",
                                      {"Type": "DiffusionSolverFE"})
    diffusionField = flexDiffSolver.ElementCC3D("DiffusionField")
    diffusionData = diffusionField.ElementCC3D("DiffusionData")
    diffusionData.ElementCC3D("FieldName", {}, "FGF")
    diffusionData.ElementCC3D("DiffusionConstant", {}, 0.10)
    diffusionData.ElementCC3D("DecayConstant", {}, 0.0)
    diffusionData.ElementCC3D("ConcentrationFileName", {},
                              "Simulation/diffusion_2D.pulse.txt")

    CompuCellSetup.setSimulationXMLDescription(cc3d)


import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])

import CompuCellSetup

sim, simthread = CompuCellSetup.getCoreSimulationObjects()

configureSimulation(sim)

CompuCellSetup.initializeSimulationObjects(sim, simthread)

from PySteppables import SteppableRegistry
steppableRegistry = SteppableRegistry()

CompuCellSetup.mainLoop(sim, simthread, steppableRegistry)

   CompuCellSetup.setSimulationXMLDescription(cc3d)
   
import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])
   
import CompuCellSetup

sim,simthread = CompuCellSetup.getCoreSimulationObjects()

#Create extra player fields here or add attributes
pyAttributeAdder,listAdder=CompuCellSetup.attachListToCells(sim)

configureSimulation(sim)

CompuCellSetup.initializeSimulationObjects(sim,simthread)


from PySteppables import SteppableRegistry
steppableRegistry=SteppableRegistry()
from CellDiffusionCalculatorSteppable import *
CellDiffusionCalculator=CellDiffusionCalculatorSteppable(_simulator=sim,_frequency=50)
steppableRegistry.registerSteppable(CellDiffusionCalculator)

CompuCellSetup.mainLoop(sim,simthread,steppableRegistry)


Exemplo n.º 6
0
import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])



import CompuCellSetup
sim,simthread = CompuCellSetup.getCoreSimulationObjects()
CompuCellSetup.initializeSimulationObjects(sim,simthread)
import CompuCell

#Create extra player fields here or add attributes


from PySteppables import SteppableRegistry
steppableRegistry=SteppableRegistry()


from VascularTumorSteppables import MitosisSteppable
mitosisSteppable=MitosisSteppable(sim,1)
steppableRegistry.registerSteppable(mitosisSteppable)

from VascularTumorSteppables import VolumeParamSteppable
                                         #sim,frequency,areaThresh,nutrientThresh,necroticThresh
volumeParamSteppable=VolumeParamSteppable(sim,1)
steppableRegistry.registerSteppable(volumeParamSteppable)

CompuCellSetup.mainLoop(sim,simthread,steppableRegistry)

import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])

import CompuCellSetup
CompuCellSetup.setSimulationXMLFileName("Simulation/elongationFlexTest.xml")
sim,simthread = CompuCellSetup.getCoreSimulationObjects()

CompuCellSetup.initializeSimulationObjects(sim,simthread)

from PySteppables import SteppableRegistry
steppableRegistry=SteppableRegistry()

from elongationFlexSteppables import ElongationFlexSteppable
elongationFlexSteppable=ElongationFlexSteppable(_simulator=sim,_frequency=50)
steppableRegistry.registerSteppable(elongationFlexSteppable)

CompuCellSetup.mainLoop(sim,simthread,steppableRegistry)

    externalPotential.ElementCC3D("Lambda",{"x":-10,"y":0, "z":0})


    pifInitializer=cc3d.ElementCC3D("Steppable",{"Type":"PIFInitializer"})
    pifInitializer.ElementCC3D("PIFName",{},"Simulation/elasticitytest.piff")

    CompuCellSetup.setSimulationXMLDescription(cc3d)

import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])
    
import CompuCellSetup

sim,simthread = CompuCellSetup.getCoreSimulationObjects()

configureSimulation(sim)

CompuCellSetup.initializeSimulationObjects(sim,simthread)

from PySteppables import SteppableRegistry
steppableRegistry=SteppableRegistry()

from elasticitytestSteppables import ElasticityLocalSteppable
elasticitySteppable=ElasticityLocalSteppable(_simulator=sim,_frequency=50)
steppableRegistry.registerSteppable(elasticitySteppable)

CompuCellSetup.mainLoop(sim,simthread,steppableRegistry)

Exemplo n.º 9
0
import sys
from os import environ
import string
sys.path.append(environ["PYTHON_MODULE_PATH"])

import CompuCellSetup
sim, simthread = CompuCellSetup.getCoreSimulationObjects()
CompuCellSetup.initializeSimulationObjects(sim, simthread)
import CompuCell

#Create extra player fields here or add attributes

from PySteppables import SteppableRegistry
steppableRegistry = SteppableRegistry()

from VascularTumorSteppables import MitosisSteppable
mitosisSteppable = MitosisSteppable(sim, 1)
steppableRegistry.registerSteppable(mitosisSteppable)

from VascularTumorSteppables import VolumeParamSteppable
#sim,frequency,areaThresh,nutrientThresh,necroticThresh
volumeParamSteppable = VolumeParamSteppable(sim, 1)
steppableRegistry.registerSteppable(volumeParamSteppable)

CompuCellSetup.mainLoop(sim, simthread, steppableRegistry)