Skip to content

rsachetto/MonoAlg3D_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

eb527e8 · Jan 15, 2025
Jan 15, 2025
Jan 15, 2025
Aug 19, 2024
Mar 3, 2022
Aug 7, 2023
Sep 21, 2022
Jun 9, 2024
Jan 15, 2025
Feb 28, 2023
Oct 19, 2023
Jun 23, 2020
Oct 15, 2021
May 4, 2023
Jun 2, 2024
Sep 29, 2017
Dec 9, 2021
Jan 9, 2024
Nov 26, 2023
Jun 6, 2024
Jan 15, 2025
Apr 15, 2020
May 2, 2022
Oct 18, 2023
Jun 25, 2021

Repository files navigation

MonoAlg3D build

The MonoAlg3D is a program for solving the 3D monodomain equation by applying the Finite Volume Method.

Pre-Requisites

  • Linux-based operating system
  • Nvidia Driver
  • CUDA library

Setting the enviroment

Ubuntu: Refer to the ubuntu guide

Fedora: Refer to the fedora guide

Compile

$ ./build.sh

The binary files will be saved in the bin folder.

Running examples

$ bin/MonoAlg3D -c example_configs/cuboid_ohara.ini 

The output will be saved in the VTK format. In order to see the results you can use Paraview (https://www.paraview.org/) or the compiled visualization tool in bin/MonoAlg3D_visualizer. You can also set the output to plain text, by changing the section save_result in example_configs/cuboid_ohara.ini to:

[save_result]
print_rate=250
output_dir=./outputs/tmp_cube
main_function=save_as_text_or_binary
binary=false

In the plain text format we have:

  • Each line represents a Volume
  • Each volume is represented by its center point (X, Y, and Z), the value of half of its side length on x, y and z and the calculated V

Example file:

850,850,950,50,50,50, -85
850,950,950,50,50,50, -85
850,950,850,50,50,50, -85

This file represents 3 volumes with 100 micrometer of side. The first volume is centered at at 850,850,950 and the calculated V is -85 mV.

Contributors:

@rsachetto Rafael Sachetto Oliveira

@bergolho Lucas Arantes Berg

@Rodrigo-Weber-dos-Santos Rodrigo Weber dos Santos

Among others.

How to cite:

Oliveira RS, Rocha BM, Burgarelli D, Meira Jr W, Constantinides C, dos Santos RW. Performance evaluation of GPU parallelization, space‐time adaptive algorithms, and their combination for simulating cardiac electrophysiology. Int J Numer Meth Biomed Engng. 2018;34:e2913. https://doi.org/10.1002/cnm.2913

Credits

Heart icons created by phatplus - Flaticon