PPolySim OS
For Researchers · Laser Cavity Lab

Laser Cavity Lab for a playground swing

Built for researchers prototyping or validating an idea. Prototype fast, reproduce exactly, and share a citable, interactive version of your model. Simulate a playground swing live below — adjust the inputs and watch it respond, right in your browser.

Laser CavityLive

Controls

Presets

A laser fires only when the optical gain from the pumped medium exceeds the losses of the mirror cavity. Below that threshold it merely glows like a lamp; above it, stimulated emission takes over and output rises steeply and linearly with pump power. This sharp threshold is the defining signature of laser action.

▶ Run in Python

Data Inspector

Threshold2.0
Output power1.60
Statelasing

Governing equation

Reading this result: Well above threshold, output climbs almost linearly with pump; the slope (~0.8 here) is the slope efficiency, and lowering cavity loss shifts the whole knee left.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

Bragg Mirror (DBR)Live

Controls

Presets

A distributed Bragg reflector stacks alternating quarter-wave layers of high and low index. Their reflections add up in phase over a band of wavelengths — the stopband — creating a mirror that can exceed 99.99% reflectivity, far better than metal. More layer pairs and higher index contrast deepen the reflectivity. Used in lasers, fiber gratings, and dielectric mirrors.

▶ Run in Python

Data Inspector

Peak reflectivity99.627%
Layer pairs8
Index contrast1.59
Stopband width160 nm

Governing equation

Reading this result: Each added pair multiplies the residual transmission, so reflectivity approaches 100% geometrically — a little more contrast buys many fewer layers.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

3

Gaussian Beam

open full solver →
Gaussian BeamLive

Controls

Presets

A real laser beam is not a perfect ray — it narrows to a minimum waist then spreads. Within one Rayleigh range of the waist it stays roughly collimated; beyond, it diverges at an angle set by wavelength over waist size. Tighter focus means faster spreading — the fundamental diffraction trade-off behind every laser and telescope.

▶ Run in Python

Data Inspector

Rayleigh range0.012 m
Divergence4.03 mrad
Waist50 µm

Governing equation

Reading this result: Divergence is set by λ/(π·w₀): shrinking the waist or lengthening the wavelength both make the beam spread faster — the core diffraction trade-off.

Runs locally in your browser — free forever. Scale to the cloud when reality gets heavy.

or unlock everything with Pro →

More with Laser Cavity Lab

Frequently asked questions

Is this good for researchers?
Yes — this version of "Laser Cavity Lab for a playground swing" is framed for researchers prototyping or validating an idea. Prototype fast, reproduce exactly, and share a citable, interactive version of your model.
Do I need to install anything?
No. It runs in any modern browser, free, with no account required.