Solve a two-mirror laser cavity: g-parameters, stability, and the TEM00 waist and mirror spot sizes.
opticsResonatorSolve a two-mirror laser cavity: g-parameters, stability, and the TEM00 waist and mirror spot sizes.
The identical function behind the worked examples on /lab/optics-bench, built from the resonator code the bench runs. Give the mirror spacing l (cm), each mirror radius r1, r2 (cm; positive is concave toward the cavity, negative convex, omitted means flat) and the wavelength w (nm). Returns g1, g2, their product, the round-trip half-trace and whether the cavity is stable; when it is, mode holds the waist radius (um), its distance from mirror 1 (cm) and the spot radius on each mirror (mm). mode is null for an unstable cavity or one on the g1*g2 = 0 or 1 boundary.
Every result carries provenance.canonicalUrl — the published page for these exact inputs, or the lane hub when they are off the published grid.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| l | Yes | Mirror spacing (cavity length), centimetres. | |
| w | Yes | Wavelength, nanometres. | |
| r1 | No | Radius of curvature of mirror 1, cm. Positive = concave toward the cavity, negative = convex. Omit for a flat mirror. | |
| r2 | No | Radius of curvature of mirror 2, cm, same convention. Omit for a flat mirror. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | The parsed inputs, echoed back with defaults filled in. | |
| result | Yes | The solved analysis. Shape is per-tool. | |
| license | Yes | ||
| provenance | Yes |