SpinWaveToolkit.bls.ObjectiveLens#

class SpinWaveToolkit.bls.ObjectiveLens(wavelength, NA, f0, f)#

Represents an objective lens with specific optical parameters.

Module for calculating the electric field focused by an objective lens. Calculations follows the method presented in book of Novotny and Hecht.

Parameters:
wavelengthfloat

(m ) wavelength of the light.

NAfloat

Numerical aperture of the objective lens.

f0float

Filling factor.

ffloat

(m ) focal length of the objective lens.

Attributes:
same as Parameters

Methods

getFocalFieldRad(z, rho_max, N)

Compute the focal field using a radial formulation.

getFocalFieldAzm(z, rho_max, N)

Compute the focal field using an azimuthal formulation (E_z = 0).

getFocalField(z, rho_max, N)

Compute the focal field using a general formulation.

getFocalField(z, rho_max, N)#

Compute the focal field using a general formulation.

Parameters:
zfloat

(m ) defocus of the beam (z = 0 corresponds to the focal plane).

rho_maxfloat

(m ) maximum radial coordinate for evaluation.

Nint

Number of points in each direction for the output grid.

Returns:
xi, yindarray

Vectors (1D numpy arrays) defining the interpolation grid.

Exi, Eyi, Ezindarray

Complex electric field components on the grid. Specified as 2D arrays.

getFocalFieldAzm(z, rho_max, N)#

Compute the focal field using an azimuthal formulation (E_z = 0).

Parameters:
zfloat

(m ) defocus of the beam (z = 0 corresponds to the focal plane).

rho_maxfloat

(m ) maximum radial coordinate for evaluation.

Nint

Number of points in each direction for the output grid.

Returns:
xi, yi1D numpy arrays

Vectors defining the interpolation grid.

Exi, Eyi, Ezindarray

Complex electric field components on the grid (with E_z identically zero). Specified as 2D arrays.

getFocalFieldRad(z, rho_max, N)#

Compute the focal field using a radial formulation.

Parameters:
zfloat

(m ) defocus of the beam (z = 0 corresponds to the focal plane).

rho_maxfloat

(m ) maximum radial coordinate for evaluation.

Nint

Number of points in each direction for the output grid.

Returns:
xi, yi1D numpy arrays

Vectors defining the interpolation grid.

Exi, Eyi, Ezindarray

Complex electric field components on the grid. Specified as 2D arrays.