A cell structure implementation of the multigrid method for the two-dimensional diffusion equation

被引:0
|
作者
Choi, Yongho [1 ]
Hwang, Youngjin [2 ]
Kwak, Soobin [2 ]
Ham, Seokjun [2 ]
Jyoti, Hyundong
Kim, Hyundong [3 ,4 ]
Kim, Junseok [2 ]
机构
[1] Daegu Univ, Dept Comp & Informat Engn, Gyongsan 38453, Gyeongsangbuk D, South Korea
[2] Korea Univ, Dept Math, Seoul 02841, South Korea
[3] Gangneung Wonju Natl Univ, Dept Math & Phys, Kangnung 25457, South Korea
[4] Gangneung Wonju Natl Univ, Inst Smart Infrastruct, Kangnung 25457, South Korea
基金
新加坡国家研究基金会;
关键词
MODEL;
D O I
10.1063/5.0247042
中图分类号
TB3 [工程材料学];
学科分类号
0805 ; 080502 ;
摘要
To solve the two-dimensional diffusion equation using the finite difference method, we propose a simple MATLAB implementation of the multigrid method. The diffusion equation plays a fundamental role in modeling many significant physical phenomena and is ubiquitous in many governing equations. Some examples include the reaction-diffusion equations, the convection-diffusion equations, and others. These equations often lack analytical solutions or pose extreme challenges in finding them. Therefore, numerical techniques are indispensable for obtaining practical and accurate approximations for these equations. The multigrid method is known for its computational efficiency and effectiveness as an iterative technique for solving the discretized diffusion equation. Due to its popularity, the multigrid method has been implemented in several programming languages, such as Python, Java, C++, C, Fortran, and others. However, it is not easy for beginners to understand the implementation of the multigrid method due to its complex data structures and recursive routines. To resolve these difficulties, we develop a straightforward MATLAB implementation of the two-dimensional diffusion equation using a cell structure in MATLAB. This work provides an accessible and efficient framework for understanding and applying the multigrid method, thereby simplifying its implementation for researchers and practitioners. (c) 2025 Author(s). All article content, except where otherwise noted, is licensed under a Creative Commons Attribution-NonCommercial 4.0International (CC BY-NC) license (https://creativecommons.org/licenses/by-nc/4.0/).https://doi.org/10.1063/5.0247042
引用
收藏
页数:11
相关论文
共 50 条