Hemodynamics · CircAdapt
TorchCor · circulation module

How the CircAdapt model works

The vessels and valves of CircAdapt (2015) as used in TorchCor: 4 elastic tubes, 2 peripheral beds and 6 valves around the heart. In TorchCor the 3D heart supplies the four chamber pressures; on this page a simple stand-in heart does, so the circulation can be shown on its own.

01

A ring of 8 compartments

4 heart chambers and 4 long elastic tubes. Valves, two venous openings and two peripheral beds connect them. The order is the same as in the code:

Red = oxygen-rich, blue = oxygen-poor. Dashed circles are the venous openings (no valve). Click any part to learn more.

Compared with the Korakianitis–Shi model

PartKorakianitis–ShiCircAdapt
Vessels6 segments, linear stretch4 long tubes, stiffer when stretched, with wave effects
Small vesselsA resistanceBeds: flow ∝ drop (body), ∝ drop² (lungs)
ValvesOpen or shut instantlyBlood has momentum; valves close gradually
Venous openings—Always open: blood can flow back into the veins
Heart chambersElastance model3D heart in TorchCor (stand-in here)
02

One heartbeat, step by step

The circulation with the stand-in heart at 72 beats/min. Press play or drag across a plot.

t = 0.000 s
Pressure (mmHg)
Volume (mL)
Valve flow (mL/s)
Flow into the atrium from the veins (mL/s)
Pressure–volume loop
03

Four building blocks

Tubes, beds and valves are CircAdapt. The heart is the part TorchCor replaces with its 3D model.

ao · ap · vc · vp

A tube gets stiffer as it stretches

Each tube's pressure follows its cross-section A = V / length. The more it is stretched, the faster pressure rises.

p = pref · ((Awall + 2A) / (Awall + 2Aref))(k − 3)/3

Wave effect: blood entering fast raises the pressure at the tube's entrance above its average: pentrance = p + Z · (inflow − outflow), where Z (the wave impedance) is larger for stiffer, narrower tubes.

In the body: k = stiffness (aging raises it). The aorta's pressure is the blood pressure; the wave effect adds to what the heart pushes against.
Pressure vs volume
04

Inputs: CircAdaptParameters

Every number is explicit; there is no parameter file. Defaults are TorchCor Lighting's. Click a part of the ring to see its parameters and their field names.

⚠ Fixed orders

Tubes: aorta, pulmonary artery, venae cavae, pulmonary veins. Valves: aortic, systemic venous opening, tricuspid, pulmonary, pulmonary venous opening, mitral. Chambers: LV, RV, LA, RA.

⚠ Units in the names

Lengths in mm, areas in mm², pressures in mmHg, volumes in mL. They are converted to SI inside.

⚠ Blood volume

Not a parameter: each tube starts at length × reference area (about 655 mL in all), plus the chambers' volumes.

All parameters in one table
05

Outputs: what CircAdapt returns

A state of 14 numbers, the pressures, and the flows. Flows use the Korakianitis–Shi names, so TorchCor can treat both models alike.

State (14)

8 volumes (mL), then 6 valve flows (mL/s).

pressures()

The 4 chamber inputs and the 4 tube pressures, plus KS aliases.

flows() · run()

10 flows in KS names. run() also returns each chamber's volume change.

Waveforms

Click to compare.

06

Try it

Change one part and watch the whole circulation respond. Dashed grey = defaults.

Left heart (mmHg)
Valve flows (mL/s)
LV pressure–volume loop
Right heart (mmHg)
ready
07

Under the hood

How it is solved

  • Unknowns: 8 volumes and 6 valve flows.
  • Method: Runge–Kutta (4th order) with 50 µs steps.
  • Trial, then commit: run() tries a step without changing anything; accept() keeps it. TorchCor repeats trials until heart and circulation volumes agree.
  • Chamber pressures are linear in time across each step.
  • Units: mmHg, mL, s outside; SI inside.

✓ same numbers as the Python code

This page runs a JavaScript copy of circadapt.py. Its equations and steps matched the Python code to machine precision (better than 10⁻¹³). The stand-in heart and the beat-by-beat settling are this page's additions.

From the first beat to a steady beat

With the stand-in heart, beats repeat until each matches the last. LV volume, beat by beat:

Sources

  • Arts T, et al. Adaptation to mechanical load determines shape and properties of heart and circulation: the CircAdapt model. Am J Physiol 288 (2005) H1943.
  • Walmsley J, et al. Fast simulation of mechanical heterogeneity in the electrically asynchronous heart using the MultiPatch module. PLoS Comput Biol 11 (2015) e1004284 (valve law, S6).
  • Augustin CM, et al. A computationally efficient physiologically comprehensive 3D–0D closed-loop model of the heart and circulation. CMAME 386 (2021) 114092, Appendix A (tubes and beds).