Metric example:
A deeply etched, short waveguide Bragg grating (4 periods),
driver file:
sgrat.cpp
Snapshot of the physical optical electric field; the fundamental TE mode is incident in the left channel: