Home Examples Screenshots User manual Bluesky logo YouTube ☰
OghmaNano Multiphysics simulation platform for optoelectronic devices and photonic systems DOWNLOAD Quick Start guide

FDTD electromagnetic detectors

1. Introduction

Digital voltmeter measuring an electric potential field, illustrating how a detector samples a field at a given location
A voltmeter measuring a potential field: detectors play a similar role in FDTD by sampling the electromagnetic field.

In an FDTD simulation, detectors act as virtual measurement probes placed inside the computational domain. They are used for both optical and radio-frequency (RF) simulations: the underlying measurements of electric and magnetic fields are the same, even though the wavelengths and applications may be very different. A useful analogy is the voltmeter in ??. Whereas a voltmeter measures electrical potential, an FDTD detector samples electromagnetic fields as waves pass through a selected region of the simulation.

Detectors sample field values at points determined by the FDTD mesh. A detector can be used to follow a signal in time or, in a three-dimensional simulation, to measure the distribution of electromagnetic energy across a surface. In OghmaNano, detector surfaces appear as grid-like planes in the 3D view, as shown in ??. Depending on the analysis, the measured field can be used to calculate transmission, reflection, or the power scattered by an object.

The time-dependent fields are available to the detector while the FDTD simulation runs. OghmaNano can also accumulate complex frequency-domain fields directly, allowing spectral measurements at chosen frequencies without saving the complete time history and applying an FFT afterwards. This makes the same detector framework suitable for optical components, antennas, and RF scattering problems.

For general information on positioning and configuring detectors, see the optical detectors section. This page concentrates on the FDTD measurements and on how those measurements become spectral and power results.

2. Detector configuration

Open the detector editor from the Optical ribbon, shown in ??, or right-click a detector plane in the 3D view and choose Edit object, as shown in ??. A simulation may use several detectors: for example, one before a device and another after it, or a detector facing an RF scattering object.

The detector editor is shown in ??. Its Configure tab controls the detector geometry, position and options such as normalised spectra. Normalising an output measurement against a reference or input measurement is particularly useful for transmission studies, because the source spectrum may not be flat. For measurements of power flowing through a detector surface, the orientation of that surface also matters: the sign of the result is defined relative to its normal direction.

The Frequency mesh tab in ?? specifies the frequencies at which complex field information is accumulated. In optical applications these points are often expressed as wavelengths; for RF simulations they are commonly specified in MHz or GHz. This frequency sampling is a detector setting and should not be confused with the spatial FDTD mesh used to resolve the geometry and fields.

Right-click menu on a detector in the 3D view showing the Edit object option
Detectors can also be accessed by right-clicking and selecting Edit object.
Optical ribbon in OghmaNano showing the Optical Detectors button used to open the detector editor
Opening the Optical Detectors Editor from the Optical ribbon.
Optical detectors editor showing detector list, geometry configuration, and normalisation options between detectors
Detector configuration panel showing geometry, position, and normalisation options.
Frequency mesh tab defining wavelength range and sampling points for FDTD spectral accumulation
Frequency mesh tab used to define the wavelength range for FDTD accumulators.

3. FDTD frequency-domain accumulators

FDTD advances the electromagnetic fields through successive timesteps, but many useful device characteristics are best described as functions of frequency. Rather than storing every timestep and processing it afterwards, a detector can build the response at selected frequencies as the simulation runs. This is achieved through complex Fourier accumulators.

For a field component sampled at times \(t_n=n\Delta t\), the accumulated quantity at angular frequency \(\omega=2\pi f\) is

\[\widetilde{E}(\omega)=\sum_{n=0}^{N-1} E(t_n)\,e^{-i\omega t_n}\,\Delta t\]

Each timestep adds a complex contribution to the selected frequency. A component oscillating at that frequency accumulates coherently, while contributions at other frequencies tend to cancel over a sufficiently long observation time. The tilde indicates a Fourier integral, not yet a normalised sinusoidal field amplitude. The same calculation can be performed for all three components of the electric field \((E_x,E_y,E_z)\) and the magnetic field \((H_x,H_y,H_z)\).

The accumulator retains both amplitude and phase. This distinction is important: transmission spectra can be based on field intensities, while calculating directional electromagnetic power requires the phase relationship between the electric and magnetic fields. For a settled continuous-wave response accumulated over a duration \(T\), the complex peak field amplitude is approximately \(2\widetilde{E}/T\); the analogous expression applies to \(\widetilde{H}\). Finite observation times and transients can affect this approximation, so the accumulation interval should be chosen appropriately for the excitation.

A separate accumulator is maintained for each requested frequency, making it possible to obtain spectral information without storing a large time-domain dataset. The frequency points are configured in the Frequency mesh tab (??). For more on the numerical method itself, see FDTD theory.

4. Detector outputs

After a simulation has run, the detector results can be opened directly from OghmaNano's Output tab. The available files depend on which detector measurements are enabled, and include time-domain measurements, frequency-domain spectra and, for calibrated scattering simulations, scattered-power data.

Output tab in OghmaNano showing a detector represented as a CCD-style icon
Detector output shown as a CCD-style icon in the output tab.
Expanded detector output folder showing files such as spectra and time-domain data
Files generated by the detector after the simulation.

After running the simulation, detector outputs appear as a small CCD-style icon in the output tab (??). Double-clicking this icon reveals the output files shown in ??.

Raw electric field spectrum versus wavelength obtained from FDTD frequency-domain accumulator
Raw electric field spectrum from the detector.
Normalised electric field spectrum showing transmission calculated by dividing output detector by input detector
Normalised spectrum showing transmission.
Time-domain power signal recorded by an FDTD detector showing pulse propagation through the simulation
Time-domain power recorded by the detector.

The files lam_E.csv and lam_E_norm.csv are produced from the frequency-domain accumulators. The first reports a raw electric-field-related spectrum, while the second reports a normalised spectrum, such as an output measurement referenced to an input measurement. These are useful when studying transmission or wavelength-selective devices. The corresponding examples are shown in ?? and ??.

The file power.csv contains a time-domain detector signal, illustrated in ??. Although time- and frequency-domain results describe the same electromagnetic simulation, the frequency-domain spectra are not created by applying an FFT to this plotted power trace. Instead, they are accumulated directly from the electric and magnetic fields during the simulation, as explained in Section 3.

In an RF scattering simulation there may also be a scattered_power.csv output. This is not simply the difference between the total powers measured with and without an object. It is calculated using the complex scattered electric and magnetic fields, obtained by comparing the main run with a reference calibration run. The measurement is explained below.

5. Measuring scattered electromagnetic power

When an electromagnetic wave encounters a golf ball, a metal object or another three-dimensional structure, the resulting field is the combination of the original incident wave and the wave scattered by the object. To measure scattering, OghmaNano uses a calibration simulation in which the object is absent, while the source, computational domain, detector positions, frequency sampling and accumulation time are kept the same. A second simulation is then performed with the object present. This comparison separates the scattered electromagnetic field from the incident field recorded by the detector.

At each detector position and frequency, the calibrated field components are subtracted from those recorded with the object present:

\[\widetilde{\mathbf E}_{\mathrm{sc}}=\widetilde{\mathbf E}_{\mathrm{object}}-\widetilde{\mathbf E}_{\mathrm{cal}}\qquad \widetilde{\mathbf H}_{\mathrm{sc}}=\widetilde{\mathbf H}_{\mathrm{object}}-\widetilde{\mathbf H}_{\mathrm{cal}}\]

Here, \(\widetilde{\mathbf E}\) and \(\widetilde{\mathbf H}\) are the complex Fourier accumulators described in Section 3. Subtracting complex fields, rather than field magnitudes, preserves their phases and is necessary to isolate the scattered wave. All six Cartesian field components are included in the calculation.

Electromagnetic energy flow is described by the Poynting vector. For complex sinusoidal field amplitudes, its time-averaged value is

\[\langle\mathbf S_{\mathrm{sc}}\rangle=\frac{1}{2}\operatorname{Re}\!\left(\mathbf E_{\mathrm{sc}}\times\mathbf H_{\mathrm{sc}}^{*}\right)\]

The cross product accounts for the direction of energy flow, while the complex conjugate \((*)\) accounts for the relative phase of the electric and magnetic fields. The local Poynting vector is measured in W/m². For settled sinusoidal fields, using the Fourier accumulators directly and integrating over the detector surface gives

\[\boxed{P_{\mathrm{sc}}(f)\simeq\frac{2}{T^2}\sum_{k} \operatorname{Re}\!\left(\widetilde{\mathbf E}_{\mathrm{sc},k}\times \widetilde{\mathbf H}_{\mathrm{sc},k}^{*}\right) \cdot\hat{\mathbf n}\,\Delta A_k}\]

In this expression, \(T\) is the field accumulation time, \(k\) identifies a detector sampling point, \(\Delta A_k\) is the area represented by that point, and \(\hat{\mathbf n}\) is the detector's surface normal. The factor \(2/T^2\) follows from converting both accumulated fields to sinusoidal amplitudes and then taking their time-averaged product. Summing the normal component of the Poynting vector over the detector surface produces the scattered-power spectrum, in watts, saved as scattered_power.csv.

💡 Interpreting the sign: Scattered power is a signed flux through the detector, not a non-negative measure of field strength. A negative value means that the net scattered power flows opposite to the chosen detector normal; for a detector facing an object this can indicate backscattering toward the source. The reported value is also not the same as subtracting the air-only power from the total power: those two powers include incident–scattered interference terms which are absent when the fields are subtracted first.

This calibration method is particularly useful for comparing the frequency dependence of scattering from different shapes while keeping the surrounding simulation unchanged. For worked examples, see radio-wave scattering from a golf ball at 10 GHz and radio-wave scattering from Stonehenge. For reliable quantitative results, use sufficient spatial and temporal resolution, consistent calibration settings and an appropriate detector placement.