Skip to main content
Log in

Different approaches to the numerical solution of the 3D Poisson equation implemented in Python

  • Published:
Computing Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

References

  1. http://www.python.org. Accessed 16 Jan 2013

  2. http://www.numpy.org. Accessed 16 Jan 2013

  3. http://pysparse.sourceforge.net. Accessed 16 Jan 2013

  4. Parr R (1989) Density functional theory of atoms and molecules. Oxford University Press, Oxford

    Google Scholar 

  5. Froese-Fischer C (1977) The Hartree-Fock method for atoms: a numerical approach. Wiley, New York

    Google Scholar 

  6. 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

    Google Scholar 

  7. Schellingerhout N.W.: Factorizability in the numerical few-body problem Ph.D. thesis, University of Groningen, The Netherlands, (1995)

  8. 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

    Google Scholar 

  9. Solin P (2006) Partial differential equations and the finite element method. Wiley Interscience

  10. http://numpy.scipy.org/F2py

Download references

Acknowledgments

Financial support by the University of South Africa (UNISA) is acknowledged.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Moritz Braun.

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00607-013-0300-x

Keywords

Mathematics Subject Classification

Navigation