- Selected Pics
- Project Aims
- Background
- Videos
- Installation
- Building And Running
- Simulation Setup File
- Simulation Runtime Controls
- Changelog
- License
- Contributing Authors
- Funding Sources
- Acknowledgements
- References
Our project has several key objectives. Firstly, we aim to utilize N-body techniques to develop an interactive model of the left atrium. This model will allow users to manipulate various parameters in real-time, facilitating the induction and observation of common arrhythmias.
Secondly, we seek to create a training and study tool for electrophysiologists, researchers, and medical students. By accurately simulating left atrial arrhythmias and their treatment using simulated ablations, the model will serve as a valuable educational resource, enhancing understanding and skill development in this critical medical field.
Additionally, the project aims to advance research in electrophysiology by providing a platform for exploring novel treatment strategies and studying arrhythmia mechanisms. This could lead to new insights and innovations in the field, ultimately benefiting patients with cardiac arrhythmias.
In summary, the project's objectives include developing a cutting-edge model for arrhythmia simulation, providing an advanced training tool for medical professionals, and advancing research in electrophysiology.
Heart disease and strokes rank among the leading causes of death globally [1,2]. Supraventricular Tachycardia (SVT) significantly contributes to strokes, heart failure, and, in some cases, acute myocardial infarction [3-5]. Therefore, reducing SVT occurrence is crucial in our efforts to promote healthier lives free of cardiovascular diseases and strokes.
SVT encompasses all cardiac arrhythmias originating above the ventricles. This abnormal heartbeat can disrupt the natural synchronization between the atria and ventricles, causing blood to stagnate in the left atrium (LA) and forming potentially lethal blood clots known as mural thrombi [6]. These clots can dislodge and travel to the brain or coronary arteries, leading to a stroke or heart attack, as seen in individuals with atrial fibrillation (AF) who face a five-fold increased stroke risk [7].
Normally, the sinus node acts as the heart's pacemaker, generating an electrical impulse that dictates the heart's rhythm. Ectopic electrical impulses can disrupt this rhythm, causing the atria to flutter or beat out of sync with the ventricles [8].
While SVT can often be controlled with medication and lifestyle changes, some drugs can be challenging to tolerate, and certain effective medications can have hepatotoxic effects [9]. Catheter ablation, though more invasive, has proven to be the most efficacious and safest method for treating recurring SVT [10-13].
Advancements in radiofrequency (RF) catheter ablation and electro-anatomical mapping have enabled doctors to perform procedures on beating hearts that were once thought impossible [14,15]. However, much remains unknown about the causes of heart arrhythmias and how to treat them using RF catheter ablation [16]. A computer model of the LA, such as the one we have developed, can assist doctors, researchers, and medical students in rapidly and inexpensively testing ideas and observing outcomes.
The LA was chosen for modeling due to its role in complex arrhythmias [17-20]. Our model simulates both electrical and mechanical activity, allowing users to adjust parameters at the muscle level and introduce ectopic events. These tools enable users to induce arrhythmias in the LA that can be eliminated through simulated ablations, all in an interactive simulation setting.
Video 1-D Base: https://youtu.be/1LfkSLHCras
Video 2-D Base: https://youtu.be/uiBhadBPQuk
Video 2-D Reentry: https://youtu.be/9or9AD9T4vQ
Video 3-D Base: https://youtu.be/mIRA23GSZKs
Video 3-D Micro-reentry: https://youtu.be/9KuRWVdBDR0
Video 3-D Higher Node Count: https://youtu.be/SaPKsIT6DkM
Video LA Base: https://youtu.be/9QzJhKyeVGc
Video LA PV Flutter: https://youtu.be/E1mbqbofrDo
Video LA Micro-reentry: https://youtu.be/qZ7-WLGbyLQ
Video LA Roof Flutter: https://youtu.be/LkOr0d9mS2c
Video Realistic LA: https://youtu.be/G_ZcHeLRRjc
- This simulation requires a CUDA-enabled GPU from Nvidia. Click here for a list of GPUs.
| *Note: These are guidelines, not rules | CPU | GPU | RAM |
|---|---|---|---|
| Minimum: | AMD/Intel Six-Core Processor | Any CUDA-Enabled GPU | 16GB DDR4 |
| Recommended: | AMD/Intel Eight-Core Processor | RTX 3090/Quadro A6000 | 32GB DDR5 |
Disclosure: This simulation only works on Linux-based distros currently. All development and testing was done in Ubuntu 20.04/22.04
Install Nvidia CUDA Toolkit:
sudo apt install nvidia-cuda-toolkit
Install Mesa Utils:
sudo apt install mesa-utils
Navigate to the cloned folder and run the following command to build and compile the simulation:
./compile
After compiling, run the simulation:
./run
Length is in millimeters (mm)
Time is in milliseconds (ms)
Mass is in grams (g)
You can start a new run using the nodes and muscles files, or you can continue a previous run.
NodesMusclesFileOrPreviousRunsFile = 0, run from the selected nodes and muscles file
NodesMusclesFileOrPreviousRunsFile = 1, run from a previous run file
If you selected 0, then you must set
InputFileName = ***;
to the name of the nodes and muscles file you want to run from the list below.
{Line11, Circle24, CSphere340, CSphere5680, IdealLeftAtrium13.0KNotTriangle, LeftAtriumRealRemovedAppendage}
If you selected 1, then you must set
PreviousRunFileName = ***;
to the name of a previous run file you saved in the PreviousRunsFile folder. The three previous run files listed below
are already placed in this folder to use as demos.
{PVFlutterDemo, MicroReentryDemo, RoofFlutterDemo}
You can set the size of the nodes and muscles with the
LineWidth = ***;
NodeRadiusAdjustment = ***;
Colors to help distinguish between simulation events can all be customized at the end of the setup file.
Note: This only affects the viewing of the simulation; no actual functionality is changed with these parameters.
Myocyte Force Per Mass strength = 596.0 mm/ms^2
BloodPressure = 80.0; millimeters of mercury converted to g/(mm*ms*ms) in the program.
MassOfAtria = 25; g
RadiusOfAtria = 17.8; mm
BaseMuscleRelaxedStrength = 2.0; This is just a force that helps the model keep its shape.
BaseMuscleCompresionStopFraction = 0.7 This only lets a muscle fiber reduce its length by 30%
BeatPeriod = 1000.0; (ms)
MaxNumberOfperiodicEctopicEvents = 50; This just sets an upper limit to the number of ectopic beats a simulation can have.
Note: ectopic beats are extra pulse nodes that the user sets in an active simulation. Ectopic triggers are single events
stimulated by mouse clicks.
The above are typical values and are all changeable in the setup file. These values are read in at the start of a simulation.
They are not changeable once the simulation starts.
BaseMuscleContractionDuration = 200.0; (ms)
BaseMuscleRechargeDuration = 200.0; (ms)
BaseMuscleConductionVelocity = 0.5; (mm/ms)
The above are typical values read in from the setup file at the start of a simulation. These values are all changeable in an active simulation.
PrintRate = 100.0; How often the program prints new information to the terminal screen.
DrawRate = 1000; How often the program draws a new simulation picture.
Dt = 0.001; How many Leap-Frog iterations are done for each ms of simulation time.
Refer to the changelog for details.
- This code is protected by the MIT License and is free to use for personal and academic use.
- Bryant Wyatt (PI)
- Gavin McIntosh
- Avery Campbell
- Melanie Little
- Leah Rogers
- Derek Hopkins
- Zachary Watson
- Brandon Wyatt
This research was supported by the NVIDIA cooperation’s Applied Research Accelerator Program. Student support was provided by Tarleton State University’s Presidential Excellence in Research Scholars and the Bill and Winnie Wyatt Foundation.
We would like to thank Tarleton State University’s Mathematics Department for use of their High-Performance Computing lab for the duration of this project.
[1] World Health Organization. (12/9/2020). The top 10 causes of death. World Health Organization. https://www.who.int/news-room/fact-sheets/detail/the top-10-causes-of-death
[2] Virani SS, Alonso A, Aparicio HJ, Benjamin EJ, Bittencourt MS, Callaway CW, Carson AP, Chamberlain AM, Cheng S, Delling FN, Elkind MSV, Evenson KR, Ferguson JF, Gupta DK, Khan SS, Kissela BM, Knutson KL, Lee CD, Lewis TT, Liu J, Loop MS, Lutsey PL, Ma J, Mackey J, Martin SS, Matchar DB, Mussolino ME, Navaneethan SD, Perak AM, Roth GA, Samad Z, Satou GM, Schroeder EB, Shah SH, Shay CM, Stokes A, VanWagner LB, Wang NY, Tsao CW; American Heart Association Council on Epidemiology and Prevention Statistics Committee and Stroke Statistics Subcommittee. Heart Disease and Stroke Statistics-2021 Update: A Report From the American Heart Association. Circulation. 2021 Feb 23;143(8):e254-e743. doi: 10.1161/CIR.0000000000000950. Epub 2021 Jan 27. PMID: 33501848.
[3] Brundel BJJM, Ai X, Hills MT, Kuipers MF, Lip GYH, de Groot NMS. Atrial fibrillation. Nature Reviews Disease Primers. 2022;8(1):21–21.
[4] Staerk L, Sherer JA, Ko D, Benjamin EJ, Helm RH. Atrial Fibrillation. Circulation Research. 2017;120(9):1501–1517.
[5] Pellman J, Sheikh F. Atrial fibrillation: mechanisms, therapeutics, and future directions. Comprehensive Physiology. 2015.
[6] Beigel R, Wunderlich NC, Ho SY, Arsanjani R, Siegel RJ. The left atrial appendage: anatomy, function, and noninvasive evaluation. JACC Cardiovasc Imaging. 2014 Dec;7(12):1251-65. doi: 10.1016/j.jcmg.2014.08.009. PMID: 25496544.
[7] Singleton MJ, Imtiaz-Ahmad M, Kamel H, O'Neal WT, Judd SE, Howard VJ, Howard G, Soliman EZ, Bhave PD. Association of Atrial Fibrillation Without Cardiovascular Comorbidities and Stroke Risk: From the REGARDS Study. J Am Heart Assoc. 2020 Jun 16;9(12):e016380. doi: 10.1161/JAHA.120.016380. Epub 2020 Jun 4. PMID: 32495723; PMCID: PMC7429041.
[8] Antzelevitch C, Burashnikov A. Overview of Basic Mechanisms of Cardiac Arrhythmia. 2011.
[9] Long MT, Ko D, Arnold LM, Trinquart L, Sherer JA, Keppel SS, Benjamin EJ, Helm RH. Gastrointestinal and liver diseases and atrial fibrillation: a review of the literature. Therap Adv Gastroenterol. 2019 Apr 2;12:1756284819832237. doi: 10.1177/1756284819832237. PMID: 30984290; PMCID: PMC6448121.
[10] Carlo P, Giuseppe A, Simone S, Filippo G, Gabriele V, Simone G, Gabriele P, Patrizio M, Nicoleta S, Isabelle G, Andreina S, Laura L, Nicola P, Andrea R, Francesco M, et al. A Randomized Trial of Circumferential Pulmonary Vein Ablation Versus Antiarrhythmic Drug Therapy in Paroxysmal Atrial Fibrillation. Journal of the American College of Cardiology. 2006;48(11):2340–2347.
[11] Charitakis E, Metelli S, Karlsson LO, Antoniadis AP, Rizas KD, Liuba I, Almroth H, Hassel Jönsson A, Schwieler J, Tsartsalis D, Sideris S, Dragioti E, Fragakis N, Chaimani A. Comparing efficacy and safety in catheter ablation strategies for atrial fibrillation: a network meta-analysis. BMC Medicine. 2022;20(1):193–193.
[12] Cheng E, Liu C, Yeo I, Markowitz S, George T, Ip J, Kim LK, Lerman BB. Risk of Mortality Following Catheter Ablation of Atrial Fibrillation. Journal of the American College of Cardiology. 2019;74(18):2254–2264.
[13] Mujović N, Marinković M, Lenarczyk R, Tilz R, Potpara TS. Catheter Ablation of Atrial Fibrillation: An Overview for Clinicians. Advances in Therapy. 2017;34(8):1897–1917.
[14] Cappato R, Calkins H, Chen S-A, Davies W, Iesaka Y, Kalman J, Kim Y-H, Klein G, Natale A, Packer D, Skanes A, Ambrogi F, Biganzoli E. Updated Worldwide Survey on the Methods, Efficacy, and Safety of Catheter Ablation for Human Atrial Fibrillation. Circulation: Arrhythmia and Electrophysiology. 2010;3(1):32–38.
[15] Ganesan AN, Shipp NJ, Brooks AG, Kuklik P, Lau DH, Lim HS, Sullivan T, Roberts-Thomson KC, Sanders P. Long-term Outcomes of Catheter Ablation of Atrial Fibrillation: A Systematic Review and Meta-analysis. Journal of the American Heart Association. 2013;2(2).
[16] Quah JX, Dharmaprani D, Lahiri A, Tiver K, Ganesan AN. Reconceptualising Atrial Fibrillation Using Renewal Theory: A Novel Approach to the Assessment of Atrial Fibrillation Dynamics. Arrhythmia & Electrophysiology Review 2021;10(2):77–84. 2021.
[17] Markides V, Schilling RJ. Atrial fibrillation: classification, pathophysiology, mechanisms and drug treatment. Heart. 2003 Aug;89(8):939-43. doi: 10.1136/heart.89.8.939. PMID: 12860883; PMCID: PMC1767799.
[18] Wyndham CRC. Atrial Fibrillation: The Most Common Arrhythmia. Texas Heart Institute Journal. 2000;27(3):257–257.
[19] Cheniti G, Vlachos K, Pambrun T, Hooks D, Frontera A, Takigawa M, Bourier F, Kitamura T, Lam A, Martin C, Dumas-Pommier C, Puyo S, Pillois X, Duchateau J, Klotz N, et al. Atrial Fibrillation Mechanisms and Implications for Catheter Ablation. Frontiers in Physiology. 2018;9.
[20] Gussak G, Pfenniger A, Wren L, Gilani M, Zhang W, Yoo S, Johnson DA, Burrell A, Benefield B, Knight G, Knight BP, Passman R, Goldberger JJ, Aistrup G, Wasserstrom JA, Shiferaw Y, Arora R. Region-specific parasympathetic nerve remodeling in the left atrium contributes to creation of a vulnerable substrate for atrial fibrillation. JCI Insight. 2019 Oct 17;4(20):e130532. doi: 10.1172/jci.insight.130532. PMID: 31503549; PMCID: PMC6824299.
[21] Niederer SA, Lumens J, Trayanova NA. Computational models in cardiology. Nature Reviews Cardiology. 2019;16(2):100–111.
[22] Potse M. Scalable and Accurate ECG Simulation for Reaction-Diffusion Models of the Human Heart. Front Physiol. 2018 Apr 20;9:370. doi: 10.3389/fphys.2018.00370. PMID: 29731720; PMCID: PMC5920200.
[23] Sellami H, Cazenille L, Fujii T, Hagiya M, Aubert-Kato N, Genot AJ. Accelerating the Finite-Element Method for Reaction-Diffusion Simulations on GPUs with CUDA. Micromachines (Basel). 2020 Sep 22;11(9):881. doi: 10.3390/mi11090881. PMID: 32971889; PMCID: PMC7569852.
[24] Trayanova NA. Whole-heart modeling: applications to cardiac electrophysiology and electromechanics. Circulation research. 2011;108(1):113–128.
[25] Cristian Barrios Espinosa, Jorge Sanchez, Olaf Dossel, Axel Loewe. Diffusion Reaction Eikonal Alternant Model: Towards Fast Simulations of Complex Cardiac Arrhythmias. Computing in Cardiology 2022; Vol 49
[26] Makowiec D, Wdowczyk J, Struzik ZR. Heart Rhythm Insights Into Structural Remodeling in Atrial Tissue: Timed Automata Approach. Front Physiol. 2019 Jan 14;9:1859. doi: 10.3389/fphys.2018.01859. PMID: 30692928; PMCID: PMC6340163.
[27] Cox BN, Snead ML. Cells as strain-cued automata. J Mech Phys Solids. 2016 Feb;87:177-226. doi: 10.1016/j.jmps.2015.11.002. Epub 2015 Dec 2. PMID: 31178602; PMCID: PMC6550492.
[28] Billy J. Fournier, Bryant M. Wyatt. (2016). Matter and GPUs: Should the Focus of Our Modeling Classes be Adjusted?. Pearson Publishing, Boston, Ma: International Conference on Technology in Collegiate Mathematics.
[29] Conway, J. H. (1970). The game of life. Scientific American, 223(4), 4-23.
[30] Helbing, D. (2012). Agent-Based Modeling. In: Helbing, D. (eds) Social Self- Organization. Understanding Complex Systems. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-24004-1_2
[31] T. J. Sego ,James P. Sluka,Herbert M. Sauro,James A. Glazier. Tissue Forge: Interactive biological and biophysics simulation environment. PLOS Computational Biology | https://doi.org/10.1371/journal.pcbi.1010768 October 23, 2023
[32] Greenspan D. N-body Problems and Models. World Scientific; 2004.
[33] Greenspan D. Molecular and Particle Modeling of Laminar and Turbulent Flows. World Scientific; 2005.
[34] Bryant M. Wyatt, Jonathan M. Petz, William J. Sumpter, Ty R. Turner, Edward L. Smith, Baylor G. Fain, Taylor J. Hutyra, Scott A. Cook, John H. Gresham, Michael F. Hibbs, Shaukat N. Goderya (2018). Creating an Isotopically Similar Earth-Moon System with Correct Angular Momentum from a Giant Impact. Journal of Astrophysics and Astronomy, 39(2) 26:1-6.
[35] Justin C. Eiland, Travis C. Salzillo, Brett H. Hokr, Justin L. Highland, William D. Mayfield, Bryant M. Wyatt. (2014). Lunar-forming Giant Impact Model Utilizing Modern Graphics Processing Units. Journal of Astrophysics and Astronomy, 35(4), 607-618.
[36] Greenspan D. Quasimolecular Modelling. World Scientific; 1991.
[37] Bryant M. Wyatt. (1994). Collisions of Microdrops of Water. Computers & Mathematics with Applications, 28 (10-12), 175-208.
[38] Jaryd Domine, Hakiem Grant, Wyatt Young, Rajesh Vuddandam, Bryant Wyatt. N-body Adaptive Optimization of Lattice Towers. GPU Technology Conference. San Jose, CA,(2020).https://www.nvidia.com/content/dam/en-zz/Solutions/gtc/conference- posters/gtc2020-posters/Design_Engineering_01_P21881_Jaryd_Domine_Web.pdf
[39] Greenspan D. Arithmetic Applied Mathematics. PERGAMON PRESS; 1980.
[40] Greenspan D. Numerical Solution of Ordinary Differential Equations for Classical, Relativistic and Nano Systems. WILEY-VCH Verlag GmbH & Co. KGaA; 2006..
[41] Edward Angel. OpenGL: A Primer. 2002. Addison-Wesley
[42] Yu-ki Iwasaki, Kunihiro Nishida, Takeshi Kato and Stanley Nattel. Atrial Fibrillation Pathophysiology. Circulation. 2011 | Volume 124, Issue 20: 2264–2274
[43] Printables. left atrium of the heart: print for occluder implantation feasibility. https://www.printables.com/model/16719-left-atrium-of-the-heart-print-for-occluder-implan
[44] Farber R. CUDA Application Design and Development. CUDA Application Design and Development. 2011.
[45] Jason Sands, J., and Kandrot,E. (2010). CUDA by Example: An Introduction to General-Purpose GPUProgramming, Pearson Education, Inc..
[46] Hwu, W. (2011). GPU Computing Gems (Emerald Ed.)Elsevier Inc., Boston, MA.
[47] Sellers, G. W. R. H. N. (2014). OpenGL SuperBible.Addison Wesley, Boston, MA.
The Particle Modeling Group reserves the right to change this policy at any time.






