- Open Access
A graphical simulation software for instruction in cardiovascular mechanics physiology
BioMedical Engineering OnLine volume 10, Article number: 8 (2011)
Computer supported, interactive e-learning systems are widely used in the teaching of physiology. However, the currently available complimentary software tools in the field of the physiology of cardiovascular mechanics have not yet been adapted to the latest systems software. Therefore, a simple-to-use replacement for undergraduate and graduate students' education was needed, including an up-to-date graphical software that is validated and field-tested.
Software compatible to Windows, based on modified versions of existing mathematical algorithms, has been newly developed. Testing was performed during a full term of physiological lecturing to medical and biology students.
The newly developed CLabUZH software models a reduced human cardiovascular loop containing all basic compartments: an isolated heart including an artificial electrical stimulator, main vessels and the peripheral resistive components. Students can alter several physiological parameters interactively. The resulting output variables are printed in x-y diagrams and in addition shown in an animated, graphical model. CLabUZH offers insight into the relations of volume, pressure and time dependency in the circulation and their correlation to the electrocardiogram (ECG). Established mechanisms such as the Frank-Starling Law or the Windkessel Effect are considered in this model. The CLabUZH software is self-contained with no extra installation required and runs on most of today's personal computer systems.
CLabUZH is a user-friendly interactive computer programme that has proved to be useful in teaching the basic physiological principles of heart mechanics.
The principles of cardiovascular mechanics are complex and due to their dynamic nature, are not readily comprehensible by studying static textbooks. Therefore, the visualization of the dynamic processes by e-learning tools which allow the user to vary the physiological variables, provides a useful tool for teaching students of medicine and biology. However, the currently available Software Laboratory  is more than twenty years old and can no longer be maintained on the latest systems software. A new programme that allows students to verify interactively the theories from the lectures was therefore necessary. This software was to be easy-to-use, small and self-contained, allowing efficient implementation, spreading and installed simply into the students' various personal computer systems.
Internet queries, including the Medline database, revealed a number of related educational tools. However, none of them satisfactorily met our graphical and didactical needs. Basically, the new tool should teach human cardiovascular mechanics and focus on the healthy adult cardiovascular system. The intention is to give students a degree of freedom in setting the model's input parameters, while the output parameters are preferably shown graphically.
Two established mathematical models were modified to generate the new CLabUZH software. The Isolated Heart Laboratory (IHL) and the Closed Circular Laboratory (CCL). The IHL model was developed by Sagawa  and Suga  and adapted by Peterson . The model for CCL is based on the algorithm developed by Peterson and Campbell. The Cardiovascular Function Labs (CFL) programme, containing both algorithms, was published in 2003 by Crawford (School of Medical Sciences, University of New South Wales, Australia) in co-operation with Peterson  and was provided under GNU General Public License version 2 (GPL2, http://www.gnu.org) in 2009. Code fractions, mainly the model's basic algorithm, were taken from the CFL software code and reused in a modified form in CLabUZH. CLabUZH is written in the programming language JAVA 2 (Sun Microsystems, http://www.sun.com) and is distributed free of charge under GPL2.
The CLabUZH software was assessed and improved during the practical courses in physiology for second year medical students and fourth year human biology students, numbering approx. 270 and 40 students, respectively, at the University of Zürich, Switzerland (UZH) during one semester in 2009.
Results and Discussion
Mathematical features of the existing software
Both existing IHL and CCL models simulate an isolated canine heart [1–3]. The nervous and humoral sympathetic and parasympathetic regulation is absent. The lack of nervous innervations is compensated by an artificial pacemaker, working at a fixed rate. The models were designed as a recursive mathematical algorithm working at discrete time intervals. Pressure, volume and flow values of the cardiovascular system are continuously re-calculated on the basis of the previous values with a time interval of 1 ms.
The IHL model uses the left heart chambers only and is connected to an unlimited virtual blood source, providing a constant preload pressure . The model is suitable for the study of the basic heart cycle covering the ventricular volume, pressure and timing relations and the valve mechanism. Primary effects such as the Frank-Starling Law - described as "the larger the diastolic volume of the heart (...) the greater is the energy of its contraction"  - or the blood pressure dumping effect of the arterial system, also known as Windkessel Effect, can all be examined.
In the CCL model, all four heart chambers are used. They are fully connected to a cardiovascular circulation loop consisting of both the systemic and the pulmonary circulation. This setting was designed to study the interaction of the two circulatory loops. The contractility of the left and right ventricles can be regulated separately. The model is useful as a means of exploring the systemic effects of various pathological conditions, e.g. partial heart insufficiencies.
Mathematical features of the new CLabUZH software
The two existing algorithms underwent three major changes: I) All internal canine parameters were changed to human values. Average values for cardiovascular healthy male and female individuals were taken . II) The missing atria were added to the heart model as they contribute a considerable fraction of the total cardiac output under conditions of an increased heart rate. Atrial contraction increases the preload and thereby contributes to the cardiac output by up to 10% . III) An electrical heart stimulator was added. The electrical stimulator contains a dynamic electrocardiogram (ECG) generator and triggers the mechanical heart activity. This ECG generator was implemented as an independent software module, concomitantly synthesizing the single ECG curve just-in-time. It draws on a library of records of ECG fractions, originating from an arbitrarily chosen single subject with a healthy cardiovascular system. The fractions are reassembled by the generator in respect to correct timing and currently selected heart rate. The timing is approximated by a set of mathematical second order terms according to Shorten and Burke . This results in a dynamically-adjusted time delay between the electrical and mechanical cardiac cycle and produces a heart rate dependent diastolic time fraction (DHF) which has a major impact on the myocardial perfusion .
Graphical features of the new CLabUZH software
The software code for CLabUZH has been written using the Java 2 programming language and applies the Model-View-Control principles . This software design pattern keeps the model, including the algorithm, strictly separate from the graphical and user interaction components. CLabUZH is designed for graphical window-based computer application. Several physiological parameters can be altered by the students. The resulting output variables are printed in x-y diagrams and visualized additionally in an animated graphical model. The main window has a toolbar located at the top, with buttons to switch between the models, to throttle simulation speed or temporarily to halt the execution. The main area below the toolbar is subdivided horizontally into two sections. The upper subdivision contains three x-y diagrams (Figure 1A-C), continuously recording cardiac pressure and volume data. The new data are superimposed on the preceding data, which fade into the background.
Furthermore, a single, not scaled electrocardiogram (ECG) from the generator is recorded in the centre diagram. Each curve on the diagrams can be concealed or made visible by clicking the relevant rubric in the legend. Moving the mouse over one of the diagrams will allow the cursor to alter to a cross hairs one and so facilitate accurate reading of data values or alternatively provide differential measurements when the mouse is dragged. For didactical reasons, the scale of all diagrams is kept fixed.
The lower window subdivision contains a dynamic graphical view of the currently selected model (Figure 2). Multiple listboxes are integrated into this view. Each listbox controls one of the input parameters of the model and can be changed manually. Changes will take effect instantaneously and run immediately into the model's calculations. A comprehensive list of the input parameters available, including currently valid value ranges, for both CFL and IHL models is shown in Table 1.
The graphical view includes an animated heart placed at the centre of the screen with other elements of the circulation loop grouped around it. The animated heart displays a human heart in an abstract four chamber view. Its shape is divided into the four compartments. The horizontal division corresponds to the atrioventricular plane, the vertical division to the ventricle septum (Figure 2). The resulting volume of each chamber is in proportion to the current chamber fillings. The reduction in volume during the contraction phase mainly results in a shortening of the longitudinal axis and to a lesser extent in the radial contraction. This distribution between the axes is based on the findings reported by Carlssen et al . In conjunction with the atrioventricular conduction delay, a considerable atrioventricular plane displacement (AVPD) results. This AVPD covers up to 60% of the stroke volume of the left ventricle .
The other elements of the circulation loop in the graphical view, such as the arterial and venous vessels, are shown and animated according to their instantaneous blood pressure. To demonstrate pulse propagation the vessels inflate and deflate in rhythm with every stroke.
Systems software compatibility to the new CLabUZH software
CLabUZH runs on the majority of today's personal computers and has been tested on the current versions of Microsoft Windows (Windows XP Professional SP2, Windows Vista Home Premium), Linux and Mac's operating systems (OS X v10.5). CLabUZH does not need an installation programme and will not store any configuration data in the PC. Furthermore, it runs directly from read-only or removable media. For convenient installation in large-scale computer training rooms, it can also be operated directly from network drives.
Assessment of the new CLabUZH software in practical student's courses
To test the functionality of CLabUZH software, it was used for a full term of instruction in cardiovascular mechanics, comprising in total over 300 participants. The use of the software was closely followed and observations made immediately applied for the improvement of the software algorithms, graphical display, interface, and the training instructions. Figure 3 shows examples of the results of single tasks. It should be noted that the CLabUZH software simulates an isolated heart without the autonomic nervous system. Especially at higher heart rates the difference to an in vivo setting becomes evident and needs manual compensation if in vivo results are demanded. All students were able to handle the software after a brief introduction and the majority of the exercises were completed within the anticipated 3 to 4 hours.
Limitations of the new CLabUZH software
Some restrictions caused by the limitations of the mathematical algorithm should be mentioned: the algorithms are based on a data matrix of volume, pressure and flow speed values and the circulation loop is subdivided into a limited number of compartments (5 compartments for IHL and 10 for CCL). Blood-mass and the resulting inertia have not been taken into consideration. Thus, an aberration must be taken into account especially during high energy ejection phases and in simulation of the pulse propagation. Nevertheless, the results of the algorithms are satisfactory and conform to our requirements.
We have found the CLabUZH software to be a solid and comprehensive educational tool for the teaching of heart mechanics. The software is rapidly installed, requires very little maintenance and is easy to use, even by persons with limited computer skills. The current software version is 8.4.4 (Additional file 1). The latest software version is also available to download from: http://www.physiol.uzh.ch/teaching.html
Peterson NS, Campbell KB: Simulated laboratory for teaching cardiac mechanics. Physiologist 1984, 27: 165–169.
Sagawa K: Closed-loop physiological control of the heart. Ann Biomed Eng 1980, 8: 415–429. 10.1007/BF02363443
Lau VK, Sagawa K, Suga H: Instantaneous pressure-volume relationship of right atrium during isovolumic contraction in canine heart. Am J Physiol 1979, 236: H672-H679.
Starling EH, Visscher MB: The regulation of the energy output of the heart. J Physiol 1927, 62: 243–261.
Schlosser T, Pagonidis K, Herborn CU, Hunold P, Waltering KU, Lauenstein TC, Barkhausen J: Assessment of left ventricular parameters using 16-MDCT and new software for endocardial and epicardial border delineation. Am J Roentgenol 2005, 184: 765–773.
Samet P, Bernstein WH, Nathan DA, Lopez A: Atrial contribution to cardiac output in complete heart block. Am J Cardiol 1965, 16: 1–10. 10.1016/0002-9149(65)90002-0
Shorten GP, Burke MJ: A precision ECG signal generator providing full Lead II QRS amplitude variability and an accurate timing profile. Conf Proc IEEE Eng Med Biol Soc 2009, 2009: 3008–3011.
Merkus D, Kajiya F, Vink H, Vergroesen I, Dankelman J, Goto M, Spaan JA: Prolonged diastolic time fraction protects myocardial perfusion when coronary blood flow is reduced. Circulation 1999, 100: 75–81.
Trygve R: Models - views - controllers. [http://heim.ifi.uio.no/~trygver/themes/mvc/mvc-index]
Carlsson M, Ugander M, Heiberg E, Arheden H: The quantitative relationship between longitudinal and radial function in left, right, and total heart pumping in humans. Am J Physiol Heart Circ Physiol 2007, 293: H636-H644. 10.1152/ajpheart.01376.2006
Carlsson M, Ugander M, Mosén H, Buhre T, Arheden H: Atrioventricular plane displacement is the major contributor to left ventricular pumping in healthy adults, athletes, and patients with dilated cardiomyopathy. Am J Physiol Heart Circ Physiol 2007, 292: H1452-H1459. 10.1152/ajpheart.01148.2006
We wish to thank Edward Crawford (Sydney, Australia) for his valuable support during the start up of the project. We also gratefully acknowledge the helpful input received from Marco Toigo (Zürich, Switzerland).
The authors declare that they have no competing interests.
The software development was done by RAW. All authors participated in the design and optimization of the software and they drafted the manuscript. All authors read and approved the final manuscript.
Electronic supplementary material
Authors’ original submitted files for images
Below are the links to the authors’ original submitted files for images.
Rights and permissions
Open Access This article is published under license to BioMed Central Ltd. This is an Open Access article is distributed under the terms of the Creative Commons Attribution License ( https://creativecommons.org/licenses/by/2.0 ), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
About this article
Cite this article
Wildhaber, R.A., Verrey, F. & Wenger, R.H. A graphical simulation software for instruction in cardiovascular mechanics physiology. BioMed Eng OnLine 10, 8 (2011). https://doi.org/10.1186/1475-925X-10-8
- Circulation Loop
- Graphical View
- Personal Computer System
- Cardiovascular Mechanic
- Left Heart Chamber