This notebook needs WebGL support.
Please check it with http://get.webgl.org/
If you can see the cube movie, your browser supports WebGL.
In [7]:
from ecell4.core import *
from ecell4.bd import BDWorld
from ecell4.lattice import LatticeWorld
In [8]:
# w = LatticeWorld(Real3(1, 1, 1), voxel_radius=0.0025)
w = BDWorld(Real3(1, 1, 1))
In [9]:
w.add_molecules(Species("A", "0.0025", "1"), 60)
w.add_molecules(Species("B", "0.005", "0.5"), 60)
In [10]:
w2 = BDWorld(Real3(1, 1, 1))
w2.add_molecules(Species("A", "0.0025", "1"), 60)
w2.add_molecules(Species("B", "0.005", "0.5"), 60)
In [11]:
from ecell4.util import viz
In [13]:
viz.plot_world(w2, debug = [
{'type': 'box', 'x': 0.2, 'y': 0.2, 'z': 0.5, 'options': {'width': 0.1, 'height': 0.1, 'depth': 0.1}},
{'type': 'sphere', 'x': 0.5, 'y': 0.5, 'z': 0.5, 'options': {'radius': 0.1}},
{'type': 'plane', 'x': 0.5, 'y': 0.5, 'z': 1.0, 'options': {'width': 0.7, 'height': 0.7}},
{'type': 'cylinder', 'x': 0.5, 'y': 0.5, 'z': 0.7, 'options': {'radius': 0.2, 'height': 0.3}}
])
Out[13]:
In [ ]: