# Settings Dialog

Settings Dialog — MC Grating documentation for Modal Collinear and Modal Conical. This dialog contains several pages: General: wavelength, incident angles,…

Canonical: https://mcgrating.com/docs/modal/settings.html


Written by Nikolay M. LyndinLast revised 2017-09-29

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).

This dialog contains several pages:

***[General](https://mcgrating.com/docs/modal/general.html)***: wavelength, incident angles, polarization state, grating period, truncation order (number of modes) and calculation method.
 ***[Layers](https://mcgrating.com/docs/modal/layers.html)***: thickness, refractive index, lamellar structure.
 ***[Scanning](https://mcgrating.com/docs/modal/scanning.html)*** versus some *General *and* Layers *parameters.
 ***[Resonance](https://mcgrating.com/docs/common/resonance.html) search.***
 ***[Fields](https://mcgrating.com/docs/common/fields.html)*** and power flows.
 ***[Options](https://mcgrating.com/docs/modal/options.html).
 [Modes](https://mcgrating.com/docs/modal/modes.html)***: propagation effective index, mode function and scattering matrixes.

Under the pagers there are three buttons:

- ***Ok*** applies all changes in this dialog and hides it.
- ***Run*** applies all changes in this dialog, hides it and starts the calculations.
 If changes concern only the representation of the results data (number of digits, format of output: power or amplitude, number of displayed diffraction orders), the data already saved in memory will be used to recalculate the new representation. The real calculation of the structure will start only if the essential structure or scanning parameters are changed.
- ***Cancel*** abolishes all changes in this dialog and closes it.

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