Writing analytic element programs in Python

Ground Water. 2009 Nov-Dec;47(6):828-34. doi: 10.1111/j.1745-6584.2009.00583.x. Epub 2009 May 18.

Abstract

The analytic element method is a mesh-free approach for modeling ground water flow at both the local and the regional scale. With the advent of the Python object-oriented programming language, it has become relatively easy to write analytic element programs. In this article, an introduction is given of the basic principles of the analytic element method and of the Python programming language. A simple, yet flexible, object-oriented design is presented for analytic element codes using multiple inheritance. New types of analytic elements may be added without the need for any changes in the existing part of the code. The presented code may be used to model flow to wells (with either a specified discharge or drawdown) and streams (with a specified head). The code may be extended by any hydrogeologist with a healthy appetite for writing computer code to solve more complicated ground water flow problems.

MeSH terms

  • Groundwater*
  • Models, Theoretical*
  • Programming Languages*
  • Software Design
  • Software*
  • Water Movements
  • Water Wells