The code implements the Generalized Source Methods in Curvilinear Coordinates for grating diffraction calculation. Currently available are: 1D sinusoidal gratings, 1D multilayer sinusoidal gratings, 1D polygonal shape gratings. Grating structures can be sandwitched inside an arbitrary planar multilayer structure.
No installation is required. The project was developed in the Matlab R2017b environment.
Add folder to the Search Path. Uncomment the necessary lines in the file "main.m" and execute it.
This code is intended for non-commercial use only. If any output of the gsmcc or of a modified vesion of the current code is published, please, refer to:
 A. A. Shcherbakov and A. V. Tishchenko, Efficient curvilinear coordinate method for grating diffraction simulation, Opt. Express 21, 25236-25247 (2013)
 A. A. Shcherbakov, Curvilinear coordinate Generalized Source Method for gratings having continuous piecewise-smooth profiles arXiv:1904.05757
All the detailes regarding the method can be found in these publications.
GSMCC is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or (at your option) any later version.
gsmcc is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.