LIVE PROPAGATION
See the whole optical path
M² > 1: this is a second-moment beam-envelope model. M² alone does not specify spatial modes or modal phase, so power overlap, overlap optimization and the Gouy-phase readout are unavailable. Set both M² values to 1 to use ideal Gaussian analysis.
Move across the plot to inspect the beam.
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