Light propagation in free space with fourier transform
Project description
Light propagation
Lightprop2d includes class 'Beam2D' to transform intitial field distribution using fourier transform from x-y field profile to kx-ky spectrum.
You can install it as follows
pip install lightprop2d
Example 1: Random beam propagation
import matplotlib.pyplot as plt
from lightprop2d import Beam2D, random_round_hole
# All input data are in cm
# XY grid dimensions
npoints = 256
# XY grid widening
beam_radius = 25e-4 # 25 um
area_size = 200e-4 # 200 um
# Wavelength in cm
wl0 = 632e-7
beam = Beam2D(area_size, npoints, wl0, init_field_gen=random_round_hole,
init_gen_args=(beam_radius,))
plt.imshow(beam.iprofile)
plt.show()
beam.propagate(100e-4)
plt.imshow(beam.iprofile)
plt.show()
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
lightprop2d-0.5.tar.gz
(3.8 kB
view hashes)
Built Distribution
Close
Hashes for lightprop2d-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 706f5b9dbb3e587b31b6cfdd11262d768b6a5c7749c41767c0a10e72a95c73fe |
|
MD5 | 56d77bfba42d7000824ea08c480a429f |
|
BLAKE2b-256 | 36dd36935c6e04b0254981212f10acb8b8e24cd6244c07d6f8410e1553fb1bcd |