solving the (factored) eikonal equation with the Fast Marching method
Project description
Eikonal Fast Marching
eikonalfm is a Python (C++) extension which implements the Fast Marching method for the eikonal equation
| grad(tau)(x) |^2 = 1 / c^2(x),
and the factored eikonal equation
| (tau0 grad(tau1) + tau1 grad(tau0))(x) |^2 = 1 / c^2(x),
where tau0(x) = | x - x_s |.
References
- J. Sethian. Fast marching methods. SIAM Review, 41(2):199-235, 1999. doi: 10.1137/S0036144598347059. URL https://doi.org/10.1137/S0036144598347059
- Eran Treister and Eldad Haber. A fast marching algorithm for the factored eikonal equation. Journal of Computational Physics, 324:210-225, 2016.
Requirements
- Python 3
- numpy version 1.7 or above
Installation
Installation from PyPi:
pip install eikonalfm
Manual install from the repository:
git clone https://github.com/Daarknes/eikonalfm.git
cd eikonalfm
python setup.py
Examples
import numpy as np
import eikonalfm
c = np.ones((100, 100))
x_s = np.array([0, 0])
dx = np.array([1.0, 1.0])
order = 2
tau_fm = eikonalfm.fast_marching(c, x_s, dx, order)
tau_ffm = eikonalfm.factored_fast_marching(c, x_s, dx, order)
Note that the source position x_s describes an index-vector.
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eikonalfm-0.9.0.tar.gz.
File metadata
- Download URL: eikonalfm-0.9.0.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8193e77ce231025bb7234f247241fc6a51767ee3c3ece2bc0cd013b2d8ebea5f
|
|
| MD5 |
d60ec83a50dc3b95a7de0045ef544ec9
|
|
| BLAKE2b-256 |
49ed83d45baa6bd3c14519b3d8ac03f09aa7bb89d62ece51bd2af2fb33d78a10
|
File details
Details for the file eikonalfm-0.9.0-cp37-cp37m-win_amd64.whl.
File metadata
- Download URL: eikonalfm-0.9.0-cp37-cp37m-win_amd64.whl
- Upload date:
- Size: 18.2 kB
- Tags: CPython 3.7m, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6276fae6f70122e933148aa6d912d13f557145e86af2f70182d1d6d637f7007a
|
|
| MD5 |
8528c6290ec0f7cde93e134554eb97df
|
|
| BLAKE2b-256 |
b3fd2930e1a6a16f1e950b1aa8254c2934d65c499354a564ff83e08a20156e7c
|