Metric example:
Defect cavity in a short, deeply etched waveguide Bragg grating, a resonant configuration.
driver file:
defcav.cpp
Snapshot of the physical optical electric field; the fundamental TE mode excites the cavity from the left channel: