Skip to content

Incomplete Python compliance chamber model to simulate blood flow (this was a school project)

Notifications You must be signed in to change notification settings

Sweb23/Blood-flow-simulation

Repository files navigation

Blood flow simulation

These Python files simulate a compliance chamber model and a time-varying elastance model. The compliance model is one of the most accessible models, as it does not require any extensive knowledge in biology or fluid mechanics.

For more details, read : Modeling and simulation in medecine and the life sciences, Frank C. Hoppensteadt & Charles S. Peskin It contains a lot of things I used to write the first three scripts listed below.

Other interesting papers :

  • Suga H, Sagawa K. Instantaneous pressure–volume relationships and their ratio in the excised, supported canine left ventricle. Circ Res. 1974;35(1):117–126. DOI: 10.1161/01.RES.35.1.117
  • Suga H, Sagawa K, Shoukas AA. Load independence of the instantaneous pressure–volume ratio of the canine left ventricle and effects of epinephrine and heart rate on the ratio. Circ Res. 1973;32(3):314–322. DOI: 10.1161/01.RES.32.3.314
  • Sunagawa K, Maughan WL, Sagawa K. Optimal arterial resistance for the maximal stroke work studied in isolated canine left ventricle. Circ Res. 1985;56(4):586–595. DOI: 10.1161/01.RES.56.4.586

Contents :

  • 1_chamber_model.py : The simplest possible model, only contains the systemic arteries, with inward and outward flows.
  • 2_chamber_model.py : Intermediate complexity. Contains the left ventricle and the systemic arteries, with associated flows and with valves represented by variables SMi & SAo
  • Complete_model.py [DOES NOT WORK PROPERLY] : The complete model of the entire circulation. Here for preservation purposes.
  • debug_model.py [DOES NOT WORK PROPERLY] : Same model as above, with some quick fixes and better logging.
  • tv_elastance_model.py : Time-varying elastance model using Suga–Sagawa double-Hill ventricular elastance. Simulates the entire model correctly. More info in ELASTANCE_MODEL.md.
  • Blood_flow.png : Figure of the blood flow in the body.
  • Blood_flow_IDs.png : The same figure, with numbers representing each chamber (useful to understand Complete_model.py)

About

Incomplete Python compliance chamber model to simulate blood flow (this was a school project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages