requires pip, pyhull
sudo apt-get install python-pip python-dev
sudo pip install pyhull
a suitable makefile alternates two programs:
cellmech/cellmech.py: calculates mechanical equilibrium
cellmech/modlink.py: link addition/removal
run the example simulation, see examples/readme.txt
extracting info from pickle files:
examples/pickleRead.py
the possible attributes of nodes and links are defined in cellmech/cell.py
some examples:
getR() position
F net force
F0 external force
M net torque
M0 external torque
pickle file visualization:
cellmech/png.make calling
pickleVis_pov.sh calling
pickleVis_pov.py
povray
the area shown is set by the content of the povray.range file
(see examples/povray.range)
the image resolution is hardcoded to 480x480 in pickleVis_pov.sh
modLink.py:
reads parameters
cell.loadData()
delAttrDist() removes dist attribute from nodes
checkLinkX() removes links intersecting with other links
intersect()
ccw()
delLinkList() appends to_del list
addLinkList() appends to_add list
pickEvent() either removes or adds object
default_update_d0() or other externally defined function
cell.dumpData()
forked from donnagreta/cellmech
-
Notifications
You must be signed in to change notification settings - Fork 1
aczirok/cellmech
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
Tools for elasto-plastic multicellular simulation
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 95.6%
- Makefile 3.5%
- Shell 0.9%