gprMax - a Finite-Difference Time-Domain Electromagnetic Simulator

Warren, Craig and Giannopoulos, Antonios (2015) gprMax - a Finite-Difference Time-Domain Electromagnetic Simulator. In: 8th European Conference on Python in Science, 26th - 30th August 2015, Cambridge, UK.

Full text not available from this repository.
Official URL:


gprMax ( was originally developed in 1996 when electromagnetic numerical modelling using the FDTD method was in its infancy. Since then a number of commercial and other freely-available FDTD-based solvers have become available, but over the past 18 years gprMax has been one of the most widely used simulation tools in the GPR community. It has been successfully used for a diverse range of applications in academia and industry. gprMax is cross-platform and was originally written using C, with the resource intensive parts – the main FDTD solver loops – parallelised using OpenMP. It uses a simple text-based input file where users specify all the parameters for a simulation, e.g. model size, discretization, time window, geometry, materials, excitation. This allows gprMax to be very flexible and scriptable and also allows it to run in high-performance computing (HPC) environments. To facilitate the implementation of new more advanced features and to lay the foundation for future developments, the code has been rewritten using a combination of Python, NumPy and Cython with OpenMP.

The initial process for building a FDTD model involves creating and configuring materials, geometry, and excitation sources, all of which fit quite well into an object-based programming model. Using Python rather than C has enabled these initial processes to be more easily and elegantly implemented, and has allowed much more complex functionality to be added. After this initial stage, but before the main FDTD calculation can begin, there are a number of element-by-element manipulations and operations that are carried out on large 3D arrays. Here, NumPy has been utilised, for example to carry out 3D Fast Fourier transform (FFT) functions. The main FDTD solving calculation is the most computationally intensive part of the code and for this reason these parts of the code have been written and parallelised using Cython. Initial testing of the new version of gprMax has shown near equivalent performance compared with the original C code. It has also demonstrated much simpler pathways to implementing new advanced features such as multi-pole dispersive material modelling, anisotropic material modelling, and the ability to load complex pre-defined objects from Python modules.

Item Type: Conference or Workshop Item (Poster)
Subjects: G600 Software Engineering
H200 Civil Engineering
H600 Electronic and Electrical Engineering
Department: Faculties > Engineering and Environment > Mechanical and Construction Engineering
Depositing User: Craig Warren
Date Deposited: 12 Jul 2017 15:59
Last Modified: 12 Oct 2019 12:16

Actions (login required)

View Item View Item


Downloads per month over past year

View more statistics