Metric example:
90
o
waveguide bend in a 2D photonic crystal,
driver file:
pcbend.cpp
Snapshot of the physical optical electric field; TE waves (fundamental mode, incident in the bottom channel) enter and exit the photonic crystal region via pieces of conventional waveguides: