≋ANTIMATTERTOOLS FOR THE LAB

BEAM PROPAGATION & MODE MATCHING

Alamode

Build an optical path. See your beam. Find a better match.

LIVE PROPAGATION

See the whole optical path

Propagated beamTarget (free space)

Move across the plot to inspect the beam.

Output radius—
Output wavefront R—
Next free-space waist z—
Output waist radius—
Effective Rayleigh range—
Divergence half-angle—

Optical components

Edit any value to update the plot. Components propagate in position order.

Model, assumptions & ALM compatibility

Alamode uses ABCD matrices for paraxial, circular beams in air. It includes thin lenses, normal-incidence curved mirrors, flat mirrors and zero-length custom same-medium ABCD matrices. Mirrors use an unfolded optical axis. M² is constant through these ideal, lossless optics.

With M² = 1 the complex Gaussian q model is used. For M² > 1, the beam envelope is represented by a generalized parameter with effective Rayleigh range zR = πw₀² / (M²λ). Beam radii use the same M² throughout propagation. The generalized parameter and its curvature describe second moments; they do not reconstruct an arbitrary non-Gaussian field or its wavefront.

Input and target M² can differ. The dashed target is an independent free-space envelope. Power overlap, bounded overlap optimization and physical Gouy-phase analysis are enabled only when both M² values equal 1. M² by itself cannot determine either spatial mode overlap or modal phase.

This model does not include clipping, aberration, astigmatism, alignment errors or power loss. It does not offer full MATLAB ALM feature parity. Beam measurement fitting is available separately in the Beam Waist Fitter.

Version 2 project files save both M² values. Older version 1 files open with missing M² values set to 1. CSV exports include the wavelength and M² settings; Gouy-phase cells are left empty for non-ideal beams.

Calculations and project files stay in your browser. Save a JSON project to keep your work or move it to another device. ALM MIT license · Nicolas Smith’s original project

From waist to optical path

  1. Set the wavelength, input waist radius, waist position and M². Enter the M² value itself, such as 1.2.
  2. Add optics and enter absolute positions along the path. Lens focal length and mirror radius use millimetres; negative values represent diverging optics.
  3. Define the target waist and its M². The dashed curve shows that target envelope in free space.
  4. For ideal Gaussian matching, set both M² values to 1. Check “Optimize” on movable components, set position bounds, and run or undo the search.
  5. For M² > 1, inspect the beam envelope, effective Rayleigh range and divergence. Overlap and modal phase cannot be inferred from M² alone.
  6. Save a JSON project or export sampled data as CSV. Version 1 projects load as ideal beams when M² is absent.

At a component position, values are evaluated immediately after the optic. A component at z = 0 acts on the incident beam. The input waist describes the beam before all components.