Beam (Core)¶
struct_opt ¶
Beam ¶
Beam(nix: float, Dx: int, niy: float = None, Dy: int = None, waist: float = 0.001, lamb: float = 1.064e-06, x0: float = 0, y0: float = 0, pol_dim: int = 1)
Bases: BeamDiagnostics
Represents a monochromatic paraxial optical beam on a discretized transverse grid.
A Beam stores a complex electric field over a 2D (x, y) region of interest, with 1, 2, or 3 polarization components (Ex, Ey, Ez). It provides methods to populate the field with standard mode families (Hermite-Gaussian, Laguerre-Gaussian, Bessel, Ince-Gaussian, fiber LP modes, etc.), apply optical elements (lenses, apertures, polarization optics), propagate the field, and analyze its properties (power, phase, centroid, mode decomposition).
The spatial grid spans [-nix, nix] x [-niy, niy] with Dx x Dy points. A matching spatial-frequency grid (kx, ky) is precomputed for Fourier-based propagation.
All input values in meters.
Attributes:
| Name | Type | Description |
|---|---|---|
nix, niy |
float
|
Half-width of the region of interest in x and y. |
Dx, Dy |
int
|
Number of grid points in x and y. |
x, y |
ndarray
|
Sparse meshgrid arrays of spatial coordinates. |
kx, ky |
ndarray
|
Sparse meshgrid arrays of spatial frequency coordinates (angular, rad/unit length). |
field |
(ndarray, shape(pol_dim, Dy, Dx), complex128)
|
The transverse field. Index 0 = Ex, 1 = Ey, 2 = Ez (when present). |
x0, y0 |
float
|
Reference center coordinates used by mode generators and rotations. |
lamb |
float
|
Wavelength. |
waist |
float
|
Reference beam waist used by mode-generating methods. |
pol |
int
|
Number of polarization components stored (1 = scalar, 2 = Ex/Ey, 3 = Ex/Ey/Ez). |
Initialize the spatial/spectral grids and an empty field array.
Source code in structured_optics\struct_opt.py
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 | |
copy ¶
copy()
Return a deep copy of this Beam, including its field data.
Source code in structured_optics\struct_opt.py
124 125 126 | |
copy_clean ¶
copy_clean(pol_dim=None)
Return a deep copy of this Beam with the field reset to zero.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
pol_dim
|
int
|
Number of polarization components for the new (zeroed) field.
Defaults to this beam's current |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
A copy sharing this beam's grid/physical parameters but with an all-zero field of shape (pol_dim, Dy, Dx). |
Source code in structured_optics\struct_opt.py
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | |
__mul__ ¶
__mul__(other)
Multiply fields.
If other is a Beam, multiplies the two fields element-wise. If other is a scalar
(int/float/complex), scales the field globally. If other is a Mask
(see masks.py / polarization.py), returns NotImplemented so Python
falls back to other.__rmul__(self), which applies the mask.
Source code in structured_optics\struct_opt.py
156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 | |
__add__ ¶
__add__(other: object)
Add another Beam's field to this one, element-wise (coherent superposition).
Source code in structured_optics\struct_opt.py
178 179 180 181 182 183 184 | |
__sub__ ¶
__sub__(other: object)
Subtract another Beam's field from this one, element-wise.
Source code in structured_optics\struct_opt.py
188 189 190 191 192 193 194 | |
__rsub__ ¶
__rsub__(other: object)
Subtract this Beam's field from other's field, element-wise.
Source code in structured_optics\struct_opt.py
196 197 198 199 200 201 202 | |
__truediv__ ¶
__truediv__(other)
Divide the field by a numeric scalar.
Source code in structured_optics\struct_opt.py
204 205 206 207 208 209 210 | |
rotated_grid ¶
rotated_grid(angle)
Temporarily rotate the beam's (x, y) coordinate grid about (x0, y0).
Within the with block, self.x and self.y are replaced by grids
rotated by angle (counter-clockwise, in radians) about the beam center.
The original grids are restored automatically on exit, even if an
exception occurs. Used internally by mode generators that accept an
angle argument.
Lose sparse property, so modes that can use this property to speed up calculation can be significantly slower. Eg: HG modes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
angle
|
float
|
Rotation angle in radians. |
required |
Yields:
| Type | Description |
|---|---|
None
|
|
Source code in structured_optics\struct_opt.py
219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | |
hg ¶
hg(n: int, m: int, z: float = 0, angle: float = 0, polarization: list = None)
Set the field to a Hermite-Gaussian mode HG_{n,m}, analytically propagated to distance z.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
Mode indices along the (possibly rotated) x and y axes. |
required |
m
|
int
|
Mode indices along the (possibly rotated) x and y axes. |
required |
z
|
float
|
Propagation distance from the beam waist at which the mode is evaluated. |
0
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] https://en.wikipedia.org/wiki/Gaussian_beam
Source code in structured_optics\struct_opt.py
301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 | |
hg_astigmatic ¶
hg_astigmatic(n: int, m: int, wx: float, wy: float, z: float = 0, angle: float = 0, polarization: list = None) -> object
Set the field to an astigmatic Hermite-Gaussian mode with independent waists wx (x-axis) and wy (y-axis), analytically propagated to distance z.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
n
|
int
|
Mode indices along the (possibly rotated) x and y axes. |
required |
m
|
int
|
Mode indices along the (possibly rotated) x and y axes. |
required |
wx
|
float
|
waists along x-axis and y-axis |
required |
wy
|
float
|
waists along x-axis and y-axis |
required |
z
|
float
|
Propagation distance from the beam waist at which the mode is evaluated. |
0
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Arnaud, Jacques A., and Herwig Kogelnik. "Gaussian light beams with general astigmatism."
Applied optics 8.8 (1969): 1687-1693.
Source code in structured_optics\struct_opt.py
328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 | |
lg ¶
lg(l: int, p: int, z: float = 0, angle: float = 0, polarization: list = None) -> object
Set the field to a Laguerre-Gaussian mode LG_{l,p} (azimuthal index l, radial index p), analytically propagated to distance z.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
l
|
int
|
Mode indices, l for orbital angular momentum and p for radial order. |
required |
p
|
int
|
Mode indices, l for orbital angular momentum and p for radial order. |
required |
z
|
float
|
Propagation distance from the beam waist at which the mode is evaluated. |
0
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] https://en.wikipedia.org/wiki/Gaussian_beam
Source code in structured_optics\struct_opt.py
359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 | |
bessel ¶
bessel(N: int, z: float = 0, angle: float = 0, polarization: list = None) -> object
Set the field to an ideal (non-diffracting) Bessel mode of order N, analytically propagated to distance z.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
N
|
int
|
Order of the bessel mode. |
required |
z
|
float
|
Propagation distance from the beam waist at which the mode is evaluated. |
0
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] https://www.rp-photonics.com/bessel_beams_and_bessel_gauss_beams.html
Source code in structured_optics\struct_opt.py
387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 | |
gbessel ¶
gbessel(N: int, r0: int, angle: float = 0, polarization: list = None) -> object
Set the field to a Gaussian-apodized Bessel beam of order N at z=0.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
N
|
int
|
Bessel order. |
required |
r0
|
float
|
Radius of the first intensity null, sets the transverse scale. |
required |
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] https://www.rp-photonics.com/bessel_beams_and_bessel_gauss_beams.html
Source code in structured_optics\struct_opt.py
415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 | |
lg_prod ¶
lg_prod(N: int, ls: tuple = None, centers: tuple = None, angle: float = 0, polarization: list = None) -> object
Set the field to a superposition/product of N Laguerre-Gaussian modes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
N
|
int
|
Number of LG modes to combine. |
required |
ls
|
tuple
|
Azimuthal indices for each of the N modes. |
None
|
centers
|
tuple
|
Transverse center offsets for each of the N modes. |
None
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Mellado-Villaseñor, G., and B. M. RodrÃguez-Lara. "Products of displaced Laguerre-Gaussian beams."
Physical Review A 113.2 (2026): 023514.
Source code in structured_optics\struct_opt.py
442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 | |
frac_oam ¶
frac_oam(Ma: float, n_modes: int, beta: float = 0, theta_0: float = 0, z: float = 0, angle: float = 0, polarization: list = None) -> object
Set the field to a fractional orbital-angular-momentum (OAM) beam,
built from n_modes OAM components approximating a non-integer
topological charge Ma.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Ma
|
float
|
Desired fractional orbital angular momentum index. |
required |
n_modes
|
int
|
Number of integer-order LG modes included in the superposition. |
required |
beta
|
float
|
Angular parameter used in the complex expansion coefficients, in radians. |
0
|
theta_0
|
float
|
Reference angular position used in the expansion coefficients, in radians. |
0
|
z
|
float
|
Propagation distance along the optical axis, in meters. Default is 0. |
0
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Götte, Jörg B., et al. "Light beams with fractional orbital angular momentum and their vortex structure."
Optics express 16.2 (2008): 993-1006.
Source code in structured_optics\struct_opt.py
472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 | |
frac_oam_qs ¶
frac_oam_qs(Ma: float, n_modes: int, beta: float = 0, theta_0: float = 0, z: float = 0, angle: float = 0, polarization: list = None) -> object
Quasi-stable variant of frac_oam: constructs a fractional-OAM beam
using a mode expansion designed to propagate with reduced gouy phase
differences, so quasi-stable propagation, compared to the standard construction.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
Ma
|
float
|
Desired fractional orbital angular momentum index. |
required |
n_modes
|
int
|
Number of integer-order LG modes included in the superposition. |
required |
beta
|
float
|
Angular parameter used in the complex expansion coefficients, in radians. |
0
|
theta_0
|
float
|
Reference angular position used in the expansion coefficients, in radians. |
0
|
z
|
float
|
Propagation distance along the optical axis, in meters. Default is 0. |
0
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Götte, Jörg B., et al. "Light beams with fractional orbital angular momentum and their vortex structure."
Optics express 16.2 (2008): 993-1006.
Source code in structured_optics\struct_opt.py
511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 | |
IG_even ¶
IG_even(p: int, m: int, q: float, z: float = 0, angle: float = 0, polarization: list = None) -> object
Set the field to an even-parity Ince-Gaussian mode IG^e_{p,m} with ellipticity parameter q, propagated to distance z.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p
|
int
|
Ince-Gauss index with (p-m)%2 = 0 |
required |
m
|
int
|
Ince-Gauss index with (p-m)%2 = 0 |
required |
q
|
float
|
Ellipticity parameter |
required |
z
|
float
|
Propagation distance from the beam waist at which the mode is evaluated. |
0
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Bandres, Miguel A., and Julio C. Gutiérrez-Vega.
"Ince–Gaussian modes of the paraxial wave equation and stable resonators."
Journal of the Optical Society of America A 21.5 (2004): 873-880.
Source code in structured_optics\struct_opt.py
550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 | |
IG_odd ¶
IG_odd(p: int, m: int, q: float, z: float = 0, angle: float = 0, polarization: list = None) -> object
Set the field to an odd-parity Ince-Gaussian mode IG^o_{p,m} with ellipticity parameter q, propagated to distance z.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p
|
int
|
Ince-Gauss index with (p-m)%2 = 0 |
required |
m
|
int
|
Ince-Gauss index with (p-m)%2 = 0 |
required |
q
|
float
|
Ellipticity parameter |
required |
z
|
float
|
Propagation distance from the beam waist at which the mode is evaluated. |
0
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Bandres, Miguel A., and Julio C. Gutiérrez-Vega.
"Ince–Gaussian modes of the paraxial wave equation and stable resonators."
Journal of the Optical Society of America A 21.5 (2004): 873-880.
Source code in structured_optics\struct_opt.py
582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 | |
HelIG ¶
HelIG(p: int, m: int, q: float, z: float = 0, helicity: int = 1, angle: float = 0, polarization: list = None) -> object
Set the field to an helical Ince-Gaussian mode HelIG_{p,m} with ellipticity parameter q, propagated to distance z. Helical is a superposition of the kind IG^e +- 1j*IG^o.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
p
|
int
|
Ince-Gauss index with (p-m)%2 = 0 |
required |
m
|
int
|
Ince-Gauss index with (p-m)%2 = 0 |
required |
q
|
float
|
Ellipticity parameter |
required |
z
|
float
|
Propagation distance from the beam waist at which the mode is evaluated. |
0
|
helicity
|
(-1, 1)
|
Defines the helicity +1 or -1. Must be one of the two. |
-1
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Bandres, Miguel A., and Julio C. Gutiérrez-Vega.
"Ince–Gaussian modes of the paraxial wave equation and stable resonators."
Journal of the Optical Society of America A 21.5 (2004): 873-880.
Source code in structured_optics\struct_opt.py
614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 | |
circle ¶
circle(center: tuple = None, radius: float = None, angle: float = 0, polarization: list = None) -> object
Set the field to a filled circular aperture (uniform amplitude) mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
center
|
tuple
|
(x, y) center of the circle. |
None
|
radius
|
float
|
Radius of the circle. |
None
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Source code in structured_optics\struct_opt.py
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 | |
square ¶
square(center: tuple = None, side_length: float = None, angle: float = 0, polarization: list = None) -> object
Set the field to a filled square aperture (uniform amplitude) mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
center
|
tuple
|
(x, y) center of the square. |
None
|
side_length
|
float
|
Side length of the square. |
None
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Source code in structured_optics\struct_opt.py
671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 | |
triangle ¶
triangle(center: tuple = None, side_length: float = None, angle: float = 0, polarization: list = None) -> object
Set the field to a filled triangular aperture (uniform amplitude) mode.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
center
|
tuple
|
(x, y) center of the triangle. |
None
|
side_length
|
float
|
Side length of the triangle. |
None
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Source code in structured_optics\struct_opt.py
694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 | |
lp ¶
lp(l: int, m: int, n_core: float, n_clad: float, parity: str = 'cos', angle: float = 0, polarization: list = None) -> object
Set the field to a linearly-polarized (LP) step-index fiber mode LP_{l,m}.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
l
|
int
|
Azimuthal mode index (l >= 0). |
required |
m
|
int
|
Radial mode index (m >= 1). |
required |
n_core
|
float
|
Refractive indices of the fiber core and cladding. |
required |
n_clad
|
float
|
Refractive indices of the fiber core and cladding. |
required |
parity
|
(cos, sin)
|
Azimuthal parity of the mode. |
'cos'
|
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Mitschke, Fedor, and Fedor Mitschke. Fiber optics. Vol. 2. Berlin, Germany:: Springer, 2016.
Source code in structured_optics\struct_opt.py
717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 | |
lp_hel ¶
lp_hel(l: int, m: int, n_core: float, n_clad: float, angle: float = 0, polarization: list = None) -> object
"
Set the field to a helical LP fiber mode, formed as LP_cos +- 1j*LP_sin,
carrying orbital angular momentum whose handedness is set by the sign of l.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
l
|
int
|
Azimuthal mode index; sign selects the helicity. |
required |
m
|
int
|
Radial mode index (m >= 1). |
required |
n_core
|
float
|
Refractive indices of the fiber core and cladding. |
required |
n_clad
|
float
|
Refractive indices of the fiber core and cladding. |
required |
angle
|
float
|
Rotation of the mode's axes (radians) relative to the beam's x/y axes. |
0
|
polarization
|
array_like
|
Polarization weighting; see |
None
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the requested mode. |
Reference
[1] Mitschke, Fedor, and Fedor Mitschke. Fiber optics. Vol. 2. Berlin, Germany:: Springer, 2016.
Source code in structured_optics\struct_opt.py
748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 | |
build_from_coefs_and_basis ¶
build_from_coefs_and_basis(coefs: ndarray, basis: ndarray, pol_index: int = 0) -> object
Build the field as a linear combination of basis modes weighted by coefs. Basis can be constructed with tools.py functions like hg_basis().
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coefs
|
ndarray
|
Complex expansion coefficients, one per basis mode. |
required |
basis
|
ndarray
|
Array of basis mode fields (e.g. from |
required |
pol_index
|
int
|
Polarization component into which the resulting field is written. |
0
|
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field set to the weighted sum of basis modes. |
Source code in structured_optics\struct_opt.py
782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 | |
propagate ¶
propagate(z, method='fres_c', **kwargs)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
z
|
float
|
Propagation distance. |
required |
method
|
(auto, fresn_c, AS, fraun, fres_f, blue, blue_fix, inc)
|
Diffraction model used for propagation. Default is 'fres_c'. |
'auto'
|
renorm
|
bool
|
If True, renormalize total power to 1 after propagation. |
required |
evanescent
|
bool
|
Optional in Angular Spectrum method. Default is False, but if True the code keeps the evanscent contribution to the field. |
required |
x_out_range
|
tuple
|
Necessary for bluestein method without fixed window range. tuple containing (x_min, x_max), (y_min, y_max) of the output window. |
required |
y_out_range
|
tuple
|
Necessary for bluestein method without fixed window range. tuple containing (x_min, x_max), (y_min, y_max) of the output window. |
required |
Dx_out
|
int
|
Optional for bluestein method. Sets number of output samples along x and y. |
required |
Dy_out
|
int
|
Optional for bluestein method. Sets number of output samples along x and y. |
required |
n_sigma
|
float
|
Optional in Bluestein Fix. How many standard deviations the bluestein_fix window range should be. |
required |
Returns:
| Type | Description |
|---|---|
Beam
|
self, with field propagated by distance z. |
References
[1] Goodman, Joseph W., and Mary E. Cox. "Introduction to Fourier optics." (1969): 97-101.
[2] Hu, Yanlei, et al. "Efficient full-path optical calculation of scalar and vector diffraction using the Bluestein method."
Light: Science & Applications 9.1 (2020): 119.
Source code in structured_optics\struct_opt.py
816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 | |