# Grating

Grating — MC Grating documentation for Chandezon Collinear and Chandezon Conical. The field Period is obvious, measurement unit is nm. The field Grating…

Canonical: https://mcgrating.com/docs/chandezon/grating.html


Written by Nikolay M. LyndinLast revised 2015-06-02

This documentation was written for releases up to 2018 and is being revised. Some dialogs have changed since. If something does not match what you see, write to [mc@mcgrating.com](mailto:mc@mcgrating.com).

- The field ***Period*** is obvious, measurement unit is *nm*.
- The field ***Grating Depth*** represents the minimum thickness of the imaginary layer which contains the grating profile. After exiting from this field or after pressing the Enter key, all sinusoidal harmonics and points values in the representation of the grating profile will be automatically recalculated preserving the grating functional shape.
- The state of other fields depends on the state of button ***Conversion to*** i.e. on the text under this button. If this text is *“Points Presentation”*, the user can edit any sinusoidal harmonic (defined by ***Harmonic Order***) individually. The user can also change the total number of harmonics in the field ***Number of Sinus Harmonics***. After pressing the button ***Conversion to*** and after the appearance of the text *“Harmonics Presentation”*, the user can insert the data of the grating profile point by point (the original grating profile will be deleted) and should choose the ***Number of Approximating Harmonics*** to decompose the inserted function as a harmonic set. In this regime by right mouse click of the ***Point Index*** control the user activates a *Popup Menu* which helps to edit points of a grating profile. After finishing the data insertion, the user can convert these data to the pure harmonics presentation or leave it as it is. This operation does not affect the result of the calculation but it is irreversible in the representation of the grating profile.
- The extended method implies the additional ***Interface ***field which provides possibility to choose the interface for editing. The interface indexes start from “*0*” and finish with the index of the last layer.
- For the extended method by clicking the right mouse button at ***Interface*** field the user activates the *Popup Menu* for manipulating the interfaces grating profiles (copy, paste, etc.).
- The extended method implies additional button ***Remove Interface.*** This button is active if the layers adjacent to the interface have identical permittivity.
- The button ***Interface Plot*** opens a window with a selected interface grating profile.
- Pressing the button ***Load Profile*** starts loading profile data text file (extensions .dat or .txt) followed by selection of profile depth and number of harmonics approximation of loaded profile. Profile must be single-valued function on a unit cell of the grating. File should contain two columns X (arbitrary) and Z (nanometer) coordinates respectively . The length of the profile table must be greater than or equal to two. The first line of the columns names is allowed. Columns should be separated by tab or double space. Values in the X column will be normalized by software to a single period.

From the in-application help of Chandezon Collinear and Chandezon Conical, documented through 2018. If you publish results computed with MC Grating, see [how to cite it](https://mcgrating.com/references.html#cite).
