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

Cooke Triplet Tutorial (Part C): Modifying and Improving the Design

Introduction

In Part C we will do something closer to real optical design. We will introduce field angle, add an aperture stop, and then make small, controlled edits in the S-plane editor to see how the aberrations redistribute.


Introducing field angle with tilted parallel rays

Up to now, all rays have travelled parallel to the optical axis. That corresponds to an on-axis object at infinity. An off-axis object at infinity is represented by rays that are still parallel to each other, but tilted by a small angle relative to the optical axis. This is the simplest way to introduce field angle without changing the rest of the setup. The goal in this section is to introduce a small, repeatable tilt that clearly changes the spot diagram. Once you can do that, you can explore coma, astigmatism, and lateral colour in a controlled way.

Open the light source editor and locate the control that sets the beam direction. Set a small tilt in one direction (for example, a small positive tilt in y), and keep the beam collimated. Your setup should look similar to ?? and ??.

Light source controls used to introduce a small tilt to the collimated beam.
Introduce field angle by tilting the parallel beam slightly. Use a small value so the beam still passes through the full lens stack.
3D view of a slightly tilted parallel beam passing through the Cooke Triplet.
3D view of a tilted parallel beam. The rays remain parallel, but the bundle travels at a small angle to the optical axis.

Run the simulation and open detector0/RAY_image.csv. Compare the tilted-beam spot diagram to the on-axis reference. You should see a lateral shift of the spot and a more asymmetric footprint. This is where coma and astigmatism start to become obvious. You may also see increased colour separation across the spot, which is a simple visual signature of lateral chromatic behaviour.

On-axis spot diagram used as a baseline.
Baseline on-axis spot diagram. This is your reference for Part C.
Tilted-beam spot diagram showing off-axis aberrations.
Tilted-beam spot diagram. The footprint should shift and become more asymmetric than the on-axis reference.

Adding an aperture stop and understanding the trade-off

Real lenses are not used wide open by default. An aperture stop limits which rays pass through the system. Stopping down usually improves image quality because it removes marginal rays, which are often the most aberrated. The trade-off is reduced throughput and reduced brightness at the detector.

Add an aperture stop to the scene and set a moderate diameter. Use your on-axis reference first, then repeat for the tilted-beam case from Section ??.

Aperture stop configuration in the Optical Workbench.
Add an aperture stop to limit the ray bundle. Place it near the front of the lens stack or at a convenient pupil location.
3D view showing rays passing through the aperture stop.
3D view with the stop in place. The ray bundle becomes narrower because only rays within the stop diameter can pass.
Spot diagram without an aperture stop.
Wide-open spot diagram (no stop). This typically shows larger aberrations because marginal rays are included.
Spot diagram with an aperture stop (stopped down).
Stopped-down spot diagram. The spot often becomes smaller and more symmetric, but fewer rays reach the detector.

Compare the stopped-down and wide-open cases. The stopped-down spot is usually smaller and cleaner, especially for the tilted-beam case. That improvement is the reason aperture stops exist. The cost is throughput: fewer rays reach the detector, so the image becomes dimmer unless you compensate with longer exposure or higher source intensity.


Change the air gap between elements and observe the effect

Spacing changes are one of the simplest ways to redistribute aberrations within a multi-element lens. In a Cooke Triplet, small air-gap changes can noticeably affect coma and astigmatism, and they can shift the detector position for best focus. Open the S-plane editor and locate the air gap between Lens 1 and Lens 2. Record the baseline value, then apply a small change such as +0.5 mm. Re-run both the on-axis case and the tilted-beam case, keeping the same detector position for a fair comparison.

S-plane editor showing the air gap between Lens 1 and Lens 2.
Identify the air gap between Lens 1 and Lens 2 in the S-plane editor. Change only this thickness for this experiment.
Comparison of spot diagrams before and after changing the air gap.
Compare baseline vs modified spacing. Look for shifts in best focus and changes in asymmetry for the tilted-beam case.

After the spacing change, do a quick best-focus check using the three-position method from Part B. This keeps the workflow simple and makes it obvious when the lens has moved its best-focus plane.


C4: Adjust one surface curvature and observe spherical aberration and focal shift

Curvature changes mainly affect focal length and the balance of on-axis aberrations. For this reason, curvature is best explored first using the on-axis case. Keep the edit small. A 2–5 percent change is enough to see a difference without destroying the design.

S-plane editor showing a single surface radius of curvature (r0) being edited.
Change one r0 value by a small percentage. Keep everything else fixed for a clean comparison.
Spot diagram comparison after a small curvature change.
On-axis spot response to a curvature change. Expect a focus shift and a change in spot size or symmetry.

Re-run the on-axis case and re-find best focus using the three-position method. If the lens has changed focal length, the smallest spot will move to a new detector position. If residual spherical aberration has changed, the spot shape will change even when you are at best focus.


Swap glass types and observe chromatic effects

Glass changes affect dispersion, which changes chromatic aberration. Use the RGB wavelength mesh for this section so the colour behaviour is visible in the spot diagram. Make one glass change at a time, and re-run both on-axis and tilted-beam cases.

Material selector used to swap a lens element glass type.
Swap the material of a single element. Choose one change that increases dispersion so the chromatic response is obvious.
RGB spot diagram showing chromatic changes after swapping glass type.
Spot diagram after a glass swap. Look for changes in RGB overlap on-axis, and changes in lateral separation for the tilted case.

On-axis, the main effect is usually axial chromatic behaviour: the three colours prefer slightly different best-focus planes. With field angle, you may also see changes in lateral colour, where the RGB components separate more across the image plane.


C6: Form an image of a resolution chart

Spot diagrams are a compact diagnostic, but an image is easier to interpret. In this section you will form a simple test-chart image and connect the spot-diagram changes to perceived sharpness, smearing, and colour fringing.

Selecting a test chart image and applying it to the light source.
Load a test chart from the pictures database and apply it as the source intensity pattern.
Rendered detector image of the test chart, on-axis baseline.
Baseline test-chart image on-axis. This is your visual reference for comparing design changes.
Rendered test chart image for the tilted-beam (field-angle) case.
Test-chart image with field angle. Look for edge smearing, directional blur, and increased colour fringing.
Comparison of test chart image wide-open versus stopped down.
Wide-open versus stopped-down comparison. Stopping down often improves sharpness at the cost of brightness.

When you compare images, look for three practical signatures. First: fine line pairs merge or blur when the spot diagram grows. Second: edges smear more in one direction when astigmatism dominates. Third: coloured fringes appear when the RGB components do not overlap in the image plane. These are the image-level consequences of the spot-diagram behaviour you have been analysing.


Conclusion and next steps

You now have a complete, practical workflow for exploring a real lens design in OghmaNano. You can introduce field angle using tilted parallel rays, improve performance using an aperture stop, and study how spacing, curvature, and glass choices redistribute aberrations. Most importantly, you can connect spot-diagram diagnostics to real image quality using a test chart.

👉 Next step: Try repeating Part C with a different historical lens in the library and compare how the spot diagrams and test-chart images change. This is the fastest way to build intuition for what different lens forms do well.