Skip to main content

A python full-field electrodynamical solver, based on the Green dyadic method (volume integral technique in frequency domain).

Project description

Retarded 3-layer Greens Tensors for pyGDM2 based on a fortran implementation by Gérard Colas des Francs.

pyGDM2 is available on pypi and gitlab.

Detailed documentation with many examples is can be found at the pyGDM2 documentation website. See also the documentation paper on arXiv (1802.04071) or a more theoretical review about the GDM method.



  • python (3.5+, python)
  • numpy (numpy)
  • numba (numba)
  • python headers (under linux install the package python-dev or python-devel)


  • fortran compiler (tested with gfortran. gcc)
  • f2py (comes with numpy. link)

Optional Python packages

  • scipy >= v0.17.0, lower versions supported with restrictions (Strongly recommended. Used for standard solver LU decomposition and several tools. scipy)

Installation under linux

Via pip

Install from pypi repository via

$ pip install pygdm2_retard

Via setup script

The easiest possibility to compile pyGDM2_retard is via the setup-script, which uses the extended distutils from numpy.

To install the pyGDM2_retard module, run in the source directory:

$ pip3 install -U .


$ python3 install

To install as a user installation without administrator rights:

$ pip3 install -U . --user

To install to a entirely free, user-defined location, use the prefix option:

$ python3 install --prefix=/some/specific/location

To only compile without installation, use

$ python3 build

Installation under windows

For windows, we recommend Anaconda in which pyGDM can be installed easily via pip. On pip we provide python 3.5+ windows binaries of the pyGDM2_retard module

Via pip

We provide a 64bit windows binary on the pypi repository (tested on Win7 and Win10). Install via

$ pip install pygdm2_retard

Compile using the Anaconda distribution (tested with anaconda3)

  1. get the repo (e.g. download from gitlab)

  2. install gcc compiler:

    $ conda install m2w64-toolchain libpython
  3. compile fortran parts:

    $ python build
  4. install:

    $ python install

Installation under Mac OS X

Should work under anaconda python as described above for compilation on windows.


fortran implementation

  • G. Colas des Francs

python interface

  • P. R. Wiecha

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyGDM2-retard, version 0.2
Filename, size File type Python version Upload date Hashes
Filename, size pyGDM2_retard-0.2.tar.gz (94.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page