Photonic structures and their application are one of the most intensively studied areas of modern optics. They are used in devices such as blue lasers, optical fibres or optical add-drop multiplexers. The paper describes the possibility of designing the photonic structure of the optical demultiplexer using the application written by the authors.