A python full-field electrodynamical solver, based on the Green dyadic method (volume integral technique in frequency domain).
Project description
pyGDM2 is available on pypi and gitlab.
Detailed documentation with many examples is avaiable at the pyGDM2 documentation website. See also the documentation paper on arXiv (1802.04071)
Requirements
Python
Fortran
Optional Python packages
scipy (Strongly recommended. Used for standard solver LU decomposition and several tools. scipy)
matplotlib (Strongly recommended. For all 2D visualization tools. matplotlib)
mpi4py (for MPI parallelized calculation of spectra. mpi4py)
mayavi (for all 3D visualization. mayavi)
PIL (image processing. PIL)
PaGMO / PyGMO (version 2.4+. Required for the EO submodule. pagmo)
(all available via pip)
Installation under Unix
Via pip
Install from pypi repository via
$ pip install pygdm2
Via setup script
The easiest possibility to compile (and install) pyGDM is via the setup-script, which uses the extended distutils from numpy.
To install pyGDM, run in the source directory:
$ python setup.py install
To install to a user-defined location, use the prefix option:
$ python setup.py install --prefix=/some/specific/location
To only compile without installation, use
$ python setup.py build
Manual compilation
clone git:
$ git clone https://gitlab.com/wiechapeter/pyGDM2.git
compile fortran parts:
$ cd fortranBase $ make
optional, for system-wide usage add to path and pythonpath, e.g. add following lines to file “/home/USER/.profile”, where “path_of_pyGDM_folder” is the pyGDM installation directory:
PATH="path_of_pyGDM_folder:$PATH" export PATH PYTHONPATH="path_of_pyGDM_folder:$PYTHONPATH" export PYTHONPATH
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pyGDM2-1.0.2.linux-x86_64.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b997903a0f28ae256d7744abbad39727ff1c69b4d5e9a6d6748ed74cdb54ea9 |
|
MD5 | 7980e2214bf491244f8f85dc467e5b09 |
|
BLAKE2b-256 | 5334fc898bc37f2d4c7fdd58b783cb3067a0fd8246079e5e2af73e0aaf67af5f |
Hashes for pyGDM2-1.0.2-py2.7-linux-x86_64.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31d540536f969509669829a591788576a4ed62f316c0dd3136ae27499cbe6da4 |
|
MD5 | f70851ad9fb6080ffbc31b175ca7fa9a |
|
BLAKE2b-256 | 5ac75bfc4598106c441c00750382e795fc6501af56eb08d664dae548ca65957b |