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

Optical detectors

1. Introduction

In OghmaNano, optical detectors are used to measure light as it propagates through an optical system. Detectors are defined using the Optical Detectors Editor, which can be opened from the Optical ribbon in the main window (see Figure ??).

Opening the Optical Detectors Editor from the Optical ribbon.

The Optical Detectors Editor is shown in ??. An optical detector in OghmaNano is a two-dimensional surface placed anywhere in the simulation domain. Conceptually, it behaves like an idealised CCD camera: it counts photons passing through it and records their spectral and spatial distribution.

Detectors do not absorb, reflect, or scatter light. They are mathematically transparent and do not perturb the optical field. Rays, waves, or photons pass through the detector unmodified; the detector simply records what crosses its surface.

OghmaNano Optical Detectors Editor showing detector configuration options
The Optical Detectors Editor configuration panel.
Right-click menu in the 3D scene showing New Detector option
Creating a new detector directly from the 3D scene via right-click.

2. Detector geometry and resolution

A detector is defined by its position, orientation, and lateral size (\(dx\) and \(dy\)). The thickness \(dz\) is irrelevant, as the detector is treated as a purely two-dimensional surface. The detector can be rotated about the \(x\), \(y\), and \(z\) axes, allowing it to face in any direction. This makes it possible to capture transmitted, reflected, or escaping light in arbitrary geometries. Detectors can also be repositioned interactively by dragging them within the 3D scene.

Under the Detector section of the configuration panel, the parameters Mesh points x and Mesh points y define the number of spatial bins used across the detector surface. These correspond directly to the number of pixels in a CCD sensor, controlling the spatial resolution of the recorded data. Multiple detectors may be placed in a single simulation. Each detector operates independently and produces its own set of output files.

3. Detector examples

Detector measuring light escaping from an optical system
A detector placed after an optical system to measure escaping light. The detector provides a spatially and spectrally resolved record of transmitted radiation.
Detector capturing light emitted from the top of a LEFET
Detector measuring light emitted from the top surface of a light-emitting field-effect transistor (LEFET).

4. Outputs

When you open a detector’s output folder you will typically see four files (see Figure ??): detector_abs0.csv, detector_efficiency0.csv, detector_input0.csv, and RAY_image.csv. Together these describe (i) the spatial distribution of detected light and (ii) the spectral throughput from the source to the detector.

Detector output shown as a CCD-like icon in the output browser
Detector output represented as a CCD-like icon in the output browser.
Detailed detector outputs including spatial images and spectra
Detailed outputs generated from light passing through the detector.

RAY_image.csv is a spatially resolved image of what the detector receives (conceptually a CCD frame). In ray-tracing mode it is usually generated by tracing three representative wavelengths (nominally “R”, “G”, and “B”) and mapping them directly to an RGB image. In non-ray-tracing workflows, or when you trace a broader wavelength set, OghmaNano converts the detected spectrum into displayable RGB using standard human visual colour-response functions (so the colour is an appearance estimate of what an eye would see, rather than a literal three-wavelength render). In practice, for EL/PL spectra you should trace many wavelengths; three-colour RGB is fine for quick optics visualisation, but it is too sparse for emission spectra.

The remaining three files form a simple “input → detected → efficiency” chain:

Rendered detector image (spatially resolved) generated from RAY_image.csv
Spatially resolved detector image (from RAY_image.csv).
Detector input histogram showing available emitted spectrum that could have hit the detector
Available spectrum that could have hit the detector (from detector_abs0.csv).
Detected light counts versus wavelength from detector_input0.csv
Detected light spectrum in counts (from detector_input0.csv).
Detection efficiency versus wavelength computed from detector_input0.csv divided by detector_abs0.csv
Detection efficiency \(\eta(\lambda)\) in percent (from detector_efficiency0.csv).