femtowave

GPU FDTD for Maxwell’s equations

femtowave simulates periodic structures, isolated scatterers and silicon waveguides, with support for dispersive materials and scalar adjoint design in open space.

Electric-field amplitude through the centre of a dielectric sphere. The incident wave travels along positive z and the field intensifies at the downstream surface.
Electric-field amplitude through a dielectric sphere, normalised to the incident field. Figure provenance

What it simulates

Dielectric pillars form a square lattice in x–y. The incident wave travels along positive z from air toward the glass, with E along x.
(a) Periodic, normal incidence pbc
Oblique s-polarised incidence in the x–z plane on a lattice of lossless dielectric spheres above a finite dielectric layer. The angle is measured from the normal. Specular beams and selected propagating orders are shown.
(b) Periodic, oblique incidence pbc-oblique
Open-space x–z section. The incident field travels along positive z with E along x inside the total-field region. Scattered fronts extend through the dashed TF/SF boundary toward the outer CPML.
(c) Isolated scatterer openspace
A silicon strip is fully embedded in silica. The guided mode is launched on an interior x–y plane, has dominant E along x, and propagates downstream along positive z.
(d) Strip waveguide waveguide

Examples

Cross-section of a sphere in its absorbing domain beside extinction and scattering spectra from FDTD and Mie theory.
Extinction and scattering spectra against Mie theory.

Mid-infrared dielectric sphere

1 pass

Pass: EX1D, extinction and scattering against Mie. A high-index pilot outside the registered gates did not meet its checks.

Electric-field amplitude through a periodic cylinder beside FDTD and RCWA power spectra.
Field amplitude and power spectra for the cylinder sanity check.

Periodic doped-silicon cylinders

1 accuracy pass1 sanity pass5 fail1 pending

Pass: C1 (accuracy), Q1 (sanity). Fail: capture identity, S3, registrations v1 and v2, reference harmonic self-check. Pending: C4.

Case D dielectric box and target patch beside a plot of normalised patch power. Hollow markers denote line-search trials.
Geometry and objective history for the scalar inverse-design case.

Silicon strip and inverse design

Waveguide: 2 pass

W3 (fp32 strip), S1 (fp64 slab limit).

Inverse design: 1 pass1 VOIDpixel checks failed and VOID1 pending

Pass: case D (M04Q). VOID: an earlier case D attempt (decay check). Pending: pixel validation.

How runs stop

Visible-band sphere step budget
7168 of 30000 steps 9.6 s instead of 45.4 s 2.7e-4 largest Qext change against the full 30000-step run, relative to its peak

After the source pulse clears, decay shutoff can end a run when the sum of squared electric-field samples in the region enclosed by the absorbing layers falls below a set fraction of its peak. A separate spectral rule can also stop periodic runs.

Shutoff record

Performance

Whole-loop MCUPS by job. OSB1, 1 GeForce RTX 3060, 4,029.0. OTB10, 1 Tesla V100-PCIe, 5,591. TBF6, 1, 2 and 4 Tesla V100-PCIe 32 GB GPUs, 8,751.7, 15,886.2 and 27,889.6 respectively. TBF8, 4 Tesla V100-PCIe 32 GB GPUs, 29,335.5.

Whole-loop throughput for plain step-by-step runs in million cell updates per second (MCUPS).

The workloads differ across jobs OSB1, OTB10, TBF6 and TBF8, as detailed in the performance record and measurement methodology.

Status: v0 (preview). v1 is in progress. The next release, v1, adds the dispersion-model fitting engine and time-blocking acceleration (first for the periodic and open-space scenes; the oblique-periodic and waveguide scenes are planned), available after registration: free for academic and non-profit research, with a paid licence for commercial use. They are not part of the open build, which is free for everyone under Apache-2.0.

Limits

  • Materials: v0 takes dispersive materials as single- or multi-pole pole-residue files; the built-in silver model is a single-pole fit, so use a material file for published optical constants. The dispersion-model fitting engine and general CCPR, Lorentz and critical-point material models will be released in v1.
  • Cylinder convergence. Run-length and full-band reference convergence remain unestablished.
  • Waveguide output. The scene reports modal amplitudes and power. Spatial field maps and snapshots remain unavailable.
  • Pixel inverse design. Checks failed or returned VOID. Validation is pending.
Measured limitations

Roadmap

  1. v0 now

    • Periodic, scattering and waveguide scenes
    • Pole-residue material files
    • Spectra and far-field outputs
    • Scalar adjoint design in open space
  2. v1 in progress

    • Dispersion-model fitting engine
    • General CCPR, Lorentz and critical-point material models
    • Time-blocking acceleration (periodic and open space first; oblique and waveguide planned)
    • Open-space field maps; directional coupler example
  3. Later

    • Batch runs from one configuration file
    • Field maps in every scene
    • Broader multi-GPU coverage
    • Periodic inverse design

Documentation

ManualScenes, options and output files
MethodologyHow results and speed are checked
LimitationsKnown accuracy limits and open items
Examples indexAll examples and documents

Using femtowave in your work? We would like to hear about it at femtowave250@gmail.com. To cite it, use CITATION.cff.