Code I write to explore physics, patterns, behaviors, visualizations and jokes. % Feb 2018: this page is still under construction... finishing in March :)

Data Visualization by Video/Image-Sequence Mapping​I use graphs every day. But instead of graphics in Microsoft Excel, Matlab, R, Matplotlib, what if we represent data by real photos and videos. I wrote a software that maps the frames of an image sequence (or a video) to a data set.​

Segregation when I like my group more than you like you group In this model, I modeled viscoelastic biological cells in a viscous environment and gave the red cells stronger attraction (elastic spring) coefficient with themselves than green cells. Over time, as you may expect, an aggregate forms with green cells surrounding the red cells. This happens for any initial organization of the cells.

Making room for familyIn this model, I modeled viscoelastic biological cells proliferating in a viscous environment trapped under a glass pane. If you see closely, you can see the cells experience tensile and compressive stress by their color change. Also since I programmed this to be as realistic as possible, the cells can form and remake adhesions with their neighbors. You want your cells to stay together as you grow! I recommend watching this on loop.

Impact Attenuation ExplorationWhat happens when you place an elastic structures inside of larger version of itself.. and keep going until you have a matryoshka doll (russian doll) scenario? Doesn't energy dissipate a lot faster than if structures hit each other in series? ... I usually simulate particles interacting with each other from an outward surface, so I wanted to investigate internal. 2D and 3D version in progress.