I was intrigued by how blood pressure is measured using modern-day devices. After getting acquainted with the basic principles, I wanted to challenge myself to try to create a barebones simulation of the basic mechanisms of measuring blood pressure.
I ended up creating essentially a (fairly buggy) particle collision system with collapsing and expanding walls.
I used p5.js to create the simulation.
python3 -m http.server
and then open localhost:8000
in your browser.
- Oscillatory Blood Pressure Monitoring Devices
- atomizer's implementation of de Casteljau's algorithm
- A particle collision system example on the p5.js website
A known bug here is the occasional escaping of the blood particle from the confines of the arterial walls. See sketch.js: 95
for more details.