Home▸Physics & Mechanics▸Laser Cavity Threshold Lab (2D)

Laser Cavity Threshold Lab (2D)

2D laser rate-equation lab: pump a gain medium between two mirrors, tune reflectivity and cavity loss, and watch population inversion clamp and photon number cross the real lasing threshold.

Physics & Mechanics2DModerate60 FPS⇄ 3D version
2d-laser-optical-cavity ↗ Open standalone

This 2D companion runs the same physics as the 3D optical-cavity model — a pumped gain medium between two mirrors — but through a plain canvas view built to make the lasing threshold itself the point: real four-level rate equations for population inversion and photon number are integrated live, mirror reflectivities and internal loss set the cavity's round-trip loss γ, and a running graph shows the inversion clamp and the photon-number kink the instant pump rate crosses the computed threshold P_th, instead of leaving the threshold as an implied backstory to a 3D beam.

⚙ Under the hood

2D laser rate-equation lab: pump a gain medium between two mirrors, tune reflectivity and internal loss, and watch population inversion clamp while photon number crosses the real lasing threshold in a live auto-scaled graph.

laser rate equationspopulation inversionlasing thresholdgain mediumcavity lossstimulated emission

2D · HTML5 Canvas 2D · 60 FPS target · runs fully client-side, no install

What did you find?

Add reproduction steps (optional)