Efficient Acceleration in Solving the 2D Neutron Diffusion Equation with CUDA: Exploring the Collaborative Practicality of Colab

This paper explores an approach to accelerate the finite difference method applied to solving the two-dimensional (2D) neutron diffusion equation for two energy groups (2G) independent of time. The main innovation lies in the implementation of a performance optimization method, emphasizing the prac...

Full description

Saved in:
Bibliographic Details
Main Authors: Paulo Igor de Oliveira Pessoa, Edson Henrice
Format: Article
Language:English
Published: Brazilian Radiation Protection Society (Sociedade Brasileira de Proteção Radiológica, SBPR) 2025-06-01
Series:Brazilian Journal of Radiation Sciences
Subjects:
Online Access:https://bjrs.org.br/revista/index.php/REVISTA/article/view/2498
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1849317059475800064
author Paulo Igor de Oliveira Pessoa
Edson Henrice
author_facet Paulo Igor de Oliveira Pessoa
Edson Henrice
author_sort Paulo Igor de Oliveira Pessoa
collection DOAJ
description This paper explores an approach to accelerate the finite difference method applied to solving the two-dimensional (2D) neutron diffusion equation for two energy groups (2G) independent of time. The main innovation lies in the implementation of a performance optimization method, emphasizing the practicality of development in Python using direct browser collaboration through Google Colaboratory (Colab). Utilizing CUDA (Compute Unified Device Architecture) for GPU acceleration, we achieve significant computational performance improvements. The study compares Python implementations using CuPy and NumPy libraries with traditional FORTRAN implementations utilizing the LAPACK library, highlighting the efficiency and precision of GPU-accelerated calculations. Results show that Python with CuPy significantly outperforms NumPy, both in a Colab environment and on a personal desktop computer. This demonstrates the practicality of cloud-based solutions for intensive computations, as the ability to run code directly in the browser through Colab eliminates the need for extensive local hardware resources. The results emphasize the convenience of executing complex simulations without relying on physical computers, promoting greater flexibility and accessibility in computational research.  All computational codes are available on GitHub for transparency and reproducibility.
format Article
id doaj-art-8280e78cf29b4277a802e4f02adcc3a1
institution Kabale University
issn 2319-0612
language English
publishDate 2025-06-01
publisher Brazilian Radiation Protection Society (Sociedade Brasileira de Proteção Radiológica, SBPR)
record_format Article
series Brazilian Journal of Radiation Sciences
spelling doaj-art-8280e78cf29b4277a802e4f02adcc3a12025-08-20T03:51:19ZengBrazilian Radiation Protection Society (Sociedade Brasileira de Proteção Radiológica, SBPR)Brazilian Journal of Radiation Sciences2319-06122025-06-01124B (Suppl.)10.15392/2319-0612.2024.24982123Efficient Acceleration in Solving the 2D Neutron Diffusion Equation with CUDA: Exploring the Collaborative Practicality of ColabPaulo Igor de Oliveira Pessoa0Edson Henrice1EletronuclearEletronuclear This paper explores an approach to accelerate the finite difference method applied to solving the two-dimensional (2D) neutron diffusion equation for two energy groups (2G) independent of time. The main innovation lies in the implementation of a performance optimization method, emphasizing the practicality of development in Python using direct browser collaboration through Google Colaboratory (Colab). Utilizing CUDA (Compute Unified Device Architecture) for GPU acceleration, we achieve significant computational performance improvements. The study compares Python implementations using CuPy and NumPy libraries with traditional FORTRAN implementations utilizing the LAPACK library, highlighting the efficiency and precision of GPU-accelerated calculations. Results show that Python with CuPy significantly outperforms NumPy, both in a Colab environment and on a personal desktop computer. This demonstrates the practicality of cloud-based solutions for intensive computations, as the ability to run code directly in the browser through Colab eliminates the need for extensive local hardware resources. The results emphasize the convenience of executing complex simulations without relying on physical computers, promoting greater flexibility and accessibility in computational research.  All computational codes are available on GitHub for transparency and reproducibility. https://bjrs.org.br/revista/index.php/REVISTA/article/view/2498Neutron Diffusion EquationCUDAGoogle Colab
spellingShingle Paulo Igor de Oliveira Pessoa
Edson Henrice
Efficient Acceleration in Solving the 2D Neutron Diffusion Equation with CUDA: Exploring the Collaborative Practicality of Colab
Brazilian Journal of Radiation Sciences
Neutron Diffusion Equation
CUDA
Google Colab
title Efficient Acceleration in Solving the 2D Neutron Diffusion Equation with CUDA: Exploring the Collaborative Practicality of Colab
title_full Efficient Acceleration in Solving the 2D Neutron Diffusion Equation with CUDA: Exploring the Collaborative Practicality of Colab
title_fullStr Efficient Acceleration in Solving the 2D Neutron Diffusion Equation with CUDA: Exploring the Collaborative Practicality of Colab
title_full_unstemmed Efficient Acceleration in Solving the 2D Neutron Diffusion Equation with CUDA: Exploring the Collaborative Practicality of Colab
title_short Efficient Acceleration in Solving the 2D Neutron Diffusion Equation with CUDA: Exploring the Collaborative Practicality of Colab
title_sort efficient acceleration in solving the 2d neutron diffusion equation with cuda exploring the collaborative practicality of colab
topic Neutron Diffusion Equation
CUDA
Google Colab
url https://bjrs.org.br/revista/index.php/REVISTA/article/view/2498
work_keys_str_mv AT pauloigordeoliveirapessoa efficientaccelerationinsolvingthe2dneutrondiffusionequationwithcudaexploringthecollaborativepracticalityofcolab
AT edsonhenrice efficientaccelerationinsolvingthe2dneutrondiffusionequationwithcudaexploringthecollaborativepracticalityofcolab