Abstract
The numerical solution of the three-dimensional Poisson equation with Dirichlet boundary conditions, which is of importance for a wide field of applications in Computational Physics and Theoretical Chemistry is considered using the method of finite elements for a model problem. The direct, the iterative and the factorized direct methods for solving the corresponding linear system of equations are discussed and implemented in the scripting language Python http://www.python.org making use of the numpy http://www.numpy.org and pysparse http://pysparse.sourceforge.net extensions. The relative performance of the different approaches is compared and it is shown, that the factorized direct method is vastly superior for larger problem sizes. A formalism for implementing the Dirichlet boundary conditions in the factorization approach is derived and presented in some detail, since it is to the best of our knowledge new.
Similar content being viewed by others
References
http://www.python.org. Accessed 16 Jan 2013
http://www.numpy.org. Accessed 16 Jan 2013
http://pysparse.sourceforge.net. Accessed 16 Jan 2013
Parr R (1989) Density functional theory of atoms and molecules. Oxford University Press, Oxford
Froese-Fischer C (1977) The Hartree-Fock method for atoms: a numerical approach. Wiley, New York
Fogolari F, Brigo A, Molinari H (2002) The Poisson–Boltzmann equation for biomolecular electrostatics: a tool for structural biology. J. Mol. Recognit. 15:377–392
Schellingerhout N.W.: Factorizability in the numerical few-body problem Ph.D. thesis, University of Groningen, The Netherlands, (1995)
Berger RJF, Sundholm D (2005) A non-iterative numerical solver of Poisson and Helmholtz equations using high-order finite-element functions. Adv. Quantum Chem. 50:235
Solin P (2006) Partial differential equations and the finite element method. Wiley Interscience
Acknowledgments
Financial support by the University of South Africa (UNISA) is acknowledged.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Braun, M. Different approaches to the numerical solution of the 3D Poisson equation implemented in Python. Computing 95 (Suppl 1), 49–60 (2013). https://doi.org/10.1007/s00607-013-0300-x
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s00607-013-0300-x