PhysSandbox
Classical MechanicsWaves & SoundElectricity & MagnetismOptics & LightGravity & OrbitsLabs
🌙Astronomy & The Sky🌡️Thermodynamics🌍Biophysics, Fluids & Geoscience📐Math Visualization🔧Engineering🧪Chemistry

More from Optics & Light

Other simulators in this category — or see all 50.

View category →
NewUniversity / research

Optical Tweezers (Gradient Trap)

Gaussian trap U(r), stiffness k ∝ P/w₀², overdamped Langevin bead with Stokes drag and thermal Brownian jitter; ⟨r²⟩ trace.

Launch Simulator
NewUniversity / research

1D Photonic Crystal Bandgap

Alternating n₁/n₂ bilayers; TE transfer-matrix T(λ), R(λ); stop bands where |Tr(M_period)/2|>1 vs period Λ.

Launch Simulator
NewUniversity / research

Sagnac (Ring) Interferometer

Δφ ∝ Ω·A/λ for counter-propagating beams in a rotating loop — optical gyro idea.

Launch Simulator
NewSchool

Brewster Angle

tan θ_B = n₂/n₁; R_p→0; θᵢ+θₜ=90°; Fresnel R_s, R_p vs θᵢ.

Launch Simulator
NewSchool

Fermat's Principle

OPL = n₁AP+n₂PB vs hit point; minimum = Snell path.

Launch Simulator
NewSchool

Chromatic Aberration

Cauchy n(λ); thin-lens f(λ); paraxial rays R/G/B.

Launch Simulator
PhysSandbox

Interactive physics, chemistry, and engineering simulators for students, teachers, and curious minds.

Physics

  • Classical Mechanics
  • Waves & Sound
  • Electricity & Magnetism

Science

  • Optics & Light
  • Gravity & Orbits
  • Astronomy & The Sky

More

  • Thermodynamics
  • Biophysics, Fluids & Geoscience
  • Math Visualization
  • Engineering
  • Chemistry

© 2026 PhysSandbox. Free interactive science simulators.

PrivacyTermsContact
Home/Optics & Light/Zernike Wavefront Aberrations

Zernike Wavefront Aberrations

Optical aberrations are conveniently expanded in Zernike polynomials Z_n^m(ρ,θ) on the unit pupil (ρ ≤ 1). This simulator superposes the lowest-order modes with user coefficients in waves (fractions of λ): defocus Z₂⁰, astigmatism Z₂² (with rotatable axis via Z₂² and Z₂⁻² components), coma Z₃¹ and Z₃⁻¹, and spherical Z₄⁰, using the standard orthonormal forms. The aberrated pupil field is E = P(ρ) exp(i2πW) with uniform amplitude inside the disk; the point-spread function PSF = |ℱ{E}|² is computed with a 128×128 FFT and compared to the diffraction-limited reference. The Strehl ratio is reported as the peak PSF ratio S = max(PSF)/max(PSF₀), and the RMS wavefront error σ (in waves) yields the Maréchal approximation S ≈ exp[−(2πσ)²] for small aberrations. Three panels show the wavefront map, aberrated PSF (optional log display), and reference Airy-like PSF, plus a radial intensity profile.

Who it's for: Undergraduate and graduate optics students studying wavefront sensing, adaptive optics, microscope alignment, and telescope aberration theory.

Key terms

  • Zernike polynomial
  • Wavefront aberration
  • Point spread function
  • Strehl ratio
  • Defocus
  • Astigmatism
  • Coma
  • Spherical aberration
  • Maréchal approximation

Live graphs

Zernike modes

0 λ
0 λ
0°
0 λ
0 λ
0 λ

Orthonormal Zernike modes on a circular pupil; wavefront in waves (λ). PSF = |ℱ{P·exp(i2πW)}|². Strehl = peak(PSF)/peak(PSF₀). Coefficients multiply RMS-normalized modes, so RMS grows roughly as the quadrature sum for single modes.

Measured values

Strehl ratio1.0000 (100.0%)
RMS wavefront0.0000 λ
Maréchal approx.1.0000
Peak |W|0.000 λ

How it works

Zernike wavefront aberrations: defocus, astigmatism, coma, and spherical modes on a circular pupil; PSF via FFT and Strehl ratio.

Key equations

W(ρ,θ) = Σ cₙᵐ Zₙᵐ(ρ,θ) · φ = 2πW/λ
Strehl ≈ exp[−(2π σ)²] (σ = RMS in waves, Maréchal)

Frequently asked questions

What units are the slider coefficients?
Amplitudes are in waves (λ) multiplying orthonormal Zernike modes on the pupil. Because those modes are RMS-normalized, a single coefficient is approximately that mode’s RMS wavefront error, not its peak-to-valley value.
How is Strehl ratio defined here?
S is the ratio of the peak aberrated PSF intensity to the peak diffraction-limited PSF from the same circular pupil — the standard intensity Strehl definition.
Why does Strehl differ from the Maréchal estimate?
The Maréchal formula S ≈ exp[−(2πσ)²] assumes small RMS phase error and many modes; a single large Zernike coefficient or high-order mixing breaks the approximation.
What is left out?
Pupil apodization, central obscuration, polychromatic light, vector diffraction, and higher Zernike orders beyond Z₄⁰.