Back to search

State University of New York at Buffalo

Enabling Computational Methods for Discretization of Partial Differential Equation Models Using Stencil Composition

Abstract

dc:description.abstract

Partial differential equations (PDEs) are numerically solved using a discretization technique which involves approximating the derivative terms in a PDE using a numerical method. One such numerical method is the finite difference method (FDM), in which a linear PDE is discretized at a central point via a linear combination of neighboring points. This combination along with their associated weights is called a "stencil". This dissertation explores a computational method using a certain FDM technique, called "stencil composition", whereby one stencil is composed with another stencil, enabling discretization of PDE-based models. Contributions towards the development of this technique have been extensively explained in this work. Focusing on the composition of derivative stencils, stencil composition allows (for example) two stencils with arbitrary derivative orders of 'a' and 'b' to be composed in order to obtain a stencil with a derivative order of 'a+b'. This "composed" stencil can then be used to create the matrix required for discretization of a PDE. PDEs which are written as a series of derivatives, or multiple applications of differential operators, will benefit greatly from the proposed research work. In any PDE model, the end result is typically written as a series of sparse matrix-matrix products. It is often advantageous to obtain a single matrix which represents this system of differential equations. Stencil composition allows for obtaining the stencil of the final system before the matrix is formed, therefore not relying on the sparsity pattern of individual stencils for their matrix-matrix products. For the software implementation of the computational method, a whole new class called "PetscFD" has been introduced, which extends the support for FDM-based discretizations in the PETSc software library. The objective is to add another discretization technology in PETSc alongside PetscFE and PetscFV to solve PDE-based problems. The main idea behind PetscFD is to enable the generation of matrices which can be directly used to solve a linear system using KSP or to create Jacobian matrices and residuals to be passed to SNES or TS nonlinear solvers. This dissertation also serves as a manual for the usage of PetscFD class, highlighting all the important functions and demonstrating their usage with the help of code excerpts to solve PDE-based problems. Adaptive mesh refinements (AMR) is also possible using PetscFD. Algorithms and refinement operations are illustrated for adaptively refining a grid. Adaptive grids are used to statically solve a PDE problem. The results obtained are compared to those from uniform refinements to measure the effectiveness of static AMR. The implementation of stencil composition in PetscFD is validated using several PDE-based models and their performance analyses. The effectiveness of these methods are investigated using convergence tests and static-scaling analysis. A comparative study is done in the end for results obtained using composition of compact and non-compact stencils.

Degree

thesis:*
Grantor dc:publisher
State University of New York at Buffalo
Year dc:date.issued
2022

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Mishra, Abhishek; 0000-0001-7445-066X
Contributors dc:contributor
  • Salac, David
  • Computational and Data Enabled Sciences

Subjects

dc:subject × 2

Rights

dc:rights
Statement dc:rights
  • Copyright retained by author. Users of works found in University at Buffalo Institutional Repository (UBIR) are responsible for identifying and contacting the copyright owner for permission to reuse. University at Buffalo Libraries do not manage rights for copyright-protected works and cannot assist with permissions.
Language dc:language
eng

Identifiers

dc:identifier.*
Handle dc:identifier
https://hdl.handle.net/10477/88695

Chain of custody

source
Harvested from
Buffalo
Base URL
ubir.buffalo.edu/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Mishra, Abhishek; 0000-0001-7445-066X. Enabling Computational Methods for Discretization of Partial Differential Equation Models Using Stencil Composition. State University of New York at Buffalo, 2022. https://hdl.handle.net/10477/88695