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.

Requirements

Python

  • python (3.5+, python)

  • numpy (numpy)

  • numba (numba)

  • python headers (under linux install the package python-dev or python-devel)

Fortran

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

or

$ python3 setup.py 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 setup.py install --prefix=/some/specific/location

To only compile without installation, use

$ python3 setup.py 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 setupy.py build
  4. install:

    $ python setupy.py install

Installation under Mac OS X

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

Authors

fortran implementation

  • G. Colas des Francs

python interface

  • P. R. Wiecha

Project details


Release history Release notifications | RSS feed

This version

0.2

Download files

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

Source Distribution

pyGDM2_retard-0.2.tar.gz (94.3 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page