Published November 23, 2023
| Version 0.6
Software
Open
wavefrontshaping/pyMMF: 0.6
- 1. CNRS
- 2. Lomonosov Moscow State University
Description
Bug correction
- solve issue with optimized (scipy bisect) radial solver (see PR #8)
Changes
- switch radial solvers:
radial
corresponds now to the corrected optimized radial solver using scipy for bisect search,radial_legacy
is the old one - Store radial and azimuthal functions of the modes in the
radial
solver inmodes0.data[<ind_mode>]['radial_func']
andmodes0.data[<ind_mode>]['azimuthal_func']
, can be used to apply to your mesh, e.g.:
modes = solver.solve(mode='radial_test', ...)
X, Y = np.meshgrid(...)
TH = np.arctan2(Y, X)
R = np.sqrt(X**2 + Y**2)
ind_mode = 0
psi_r = modes.data[ind_mode]['radial_func'](R)
psi_theta = modes.data[ind_mode]['azimuthal_func'](TH)
plt.figure()
plt.imshow(np.real(R*TH))
- in the radial solver, argument
min_radius_bc
is now in units of wavelength, defaults to 4.
Files
wavefrontshaping/pyMMF-0.4.zip
Files
(1.5 MB)
Name | Size | Download all |
---|---|---|
md5:63ba7b0025d0176b4c717cdd5008ed8c
|
20.0 kB | Preview Download |
md5:cac9588537d132b33ff9acd9cc3ea01c
|
1.5 MB | Preview Download |
Additional details
Related works
- Is supplement to
- Software: https://github.com/wavefrontshaping/pyMMF/tree/0.6 (URL)