Home Examples Screenshots User manual Bluesky logo
OghmaNano Simulate organic/Perovskite Solar Cells, OFETs, and OLEDs DOWNLOAD

200 mm Prime Lens Tutorial (Part B): Ray Anatomy and Vignetting Checks

Introduction

In this part we build a practical “pre-metric” workflow: you will read the lens by eye using only the 3D ray paths and the detector image. The goal is to answer three questions quickly: (i) where is the stop and what rays does it accept, (ii) which rays behave like paraxial vs marginal rays, and (iii) are you seeing clipping/vignetting that will damage off-axis performance.


1. Find the stop and confirm what it limits

In the 3D view, locate the stop/aperture object (typically a plate with a circular opening). Rotate the scene so you can see rays approaching and passing through the stop (??). If your scene includes an adjustable diameter parameter (e.g. D0), note where it is edited (e.g. via Mesh editor).

3D view highlighting the stop/aperture and rays passing through it.
The stop/aperture limits the accepted cone of rays. This is the fastest place to spot clipping.

2. Compare paraxial and marginal ray bundles

Create two runs that differ only in which part of the pupil is illuminated: an on-axis “central” case and an “edge” case. Use the same detector position and the same wavelength setup.

Paraxial (central) ray bundle through the lens.
Paraxial (central) bundle: rays close to the optical axis.
Marginal (edge) ray bundle through the lens.
Marginal (edge) bundle: rays that sample the outer zones of the optics.

After each run, open detector0/RAY_image.csv and compare the footprints. The central bundle should typically look more compact and symmetric; the edge bundle is where asymmetry, smear, and clipping tend to appear first.


3. Diagnose clipping and vignetting by eye

Now introduce a small field angle (tilt the beam) and repeat the same comparison. In OghmaNano this is often done using a rotation parameter such as Rotate Phi in the source editor. Use a modest angle (e.g. 5–10°).

Run two cases at the same field angle: (i) stop wide open, (ii) stop stopped down. Compare both the 3D ray paths and the detector footprints. You are looking for the characteristic signatures of vignetting: rays being blocked before reaching the detector and a reduced/warped footprint.

Field-angle case with stop closed showing strong rejection at the stop.
Field angle with stop stopped down: fewer rays admitted; clipping is easier to see.
Field-angle case with stop open showing more rays but increased distortion and potential vignetting.
Field angle with stop wide open: more rays admitted; marginal rays can dominate the footprint.

What you can now do (Part B)

Rule of thumb — where problems show up first
  • Marginal rays (edge of pupil) show aberrations/clipping before paraxial rays.
  • Off-axis field points show vignetting and asymmetry before on-axis points.
  • Stop changes often look subtle on-axis and dramatic off-axis.

👉 Next step: From here you can extend this demo into a short “aperture sweep” exploration, or reuse the workflow on any imported lens table in the S-plane editor.