You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with species_attributes():
A | B | {'radius':str(rv),"D": str(D), "location": "M"}
C | {'radius':str(rv),'D': str(D)}
with reaction_rules():
C > A+B | 10 #rule1
C > B | 10 #rule2
%matplotlib inline
from ecell4 import *
L=2
rv=0.01
D=1
h=0.5*L
h0=0
h1=h
with species_attributes():
A | B | {'radius':str(rv),"D": str(D), "location": "M"}
C | {'radius':str(rv),'D': str(D)}
with reaction_rules():
C > A+B | 10 #rule1
C > B | 10 #rule2
m = get_model()
w = spatiocyte.SpatiocyteWorld(Real3(L,h,L),rv)
w.bind_to(m)
upper = Real3(0,h1-2*rv,0)
lower = Real3(0,h0,0)
unit0 = Real3(0,0,L)
unit1 = Real3(L,0,0)
w.add_structure(Species("M"),PlanarSurface(upper,unit0,unit1))
w.add_structure(Species("W"),PlanarSurface(lower,unit0,unit1))
w.add_molecules(Species("C"),100)
sim = spatiocyte.SpatiocyteSimulator(w)
dt=50
duration=0.3
obs1 = FixedIntervalNumberObserver(duration/dt, ['C'])
sim.run(duration, obs1)
viz.plot_number_observer(obs1)
The text was updated successfully, but these errors were encountered: