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
Fortran
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)
get the repo (e.g. download from gitlab)
install gcc compiler:
$ conda install m2w64-toolchain libpython
compile fortran parts:
$ python setupy.py build
install:
$ python setupy.py install
Installation under Mac OS X
Should work under anaconda python as described above for compilation on windows.
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
File details
Details for the file pyGDM2_retard-0.2.tar.gz
.
File metadata
- Download URL: pyGDM2_retard-0.2.tar.gz
- Upload date:
- Size: 94.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c606cfec20c42142442d2fc13aa831df6ebe34ce7c7600bf512abdc0082799f |
|
MD5 | d2a4f61087d5ad0f15282e141be890d5 |
|
BLAKE2b-256 | 9f914f280a834684e788bbeb11fc1540a44a379fdeb0fd869a9f707dc06925c6 |