JET5 Sim III
(height)/(Math.sqrt(2*Math.PI)*wid) * Math.exp(-Math.pow((x-cen),2) /(2*Math.pow(wid,2)))
The gaussian function (blue, various skews red, green, grey) and wash in/out curves (orange)—the physiological curves.
Electro-physiological events in the heart include sharp spikes and blunt mass waveforms from depolarisation and repolarisation. The ECG surface trace above is composed of between 5 and 7 scaled and skewed gaussian wavelets which provide a flexible and convincing waveform.
Simulating the CVS is done using a network of interconnected chambers and valves. The 4 cardiac chambers are able to pump (Starling, inotropy, valves, etc), otherwise all chambers have dynamically variable compliance, residual volume, and upper-volume constraints depending on the surrounding tissues. Blood is pumped actively from the cardiac chambers, all other blood flow is passive down pressure gradients with the rate depending on the local vascular resistance.