Metric example:
Rectangular facet of a slab waveguide,
driver file:
facet.cpp
Snapshot of the physical optical electric field; the fundamental TE mode is launched in the left channel: