# Analysis Dialog

Analysis Dialog — MC Grating documentation for Modal Crossed and Chandezon Crossed. This dialog allows calculating reflection and transmission of a finite…

Canonical: https://mcgrating.com/docs/common-crossed/analysis.html


Written by Nikolay M. LyndinLast revised 2016-10-16

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 allows calculating reflection and transmission of a finite Gaussian beam of two output polarizations the TE (s) or the TM (p) in the plane base coordinate system. In the case of the TE polarization the software uses *Es* electrical field component. In the case of the TM polarization the software uses *Ep* = *Hp*/*n* (*n* is the propagation medium refractive index) electromagnetic field component. The FFT (Fast Fourier Transform) and Pole functions of a resonance search are implemented.
 The reflected and transmitted Gaussian beams are calculated as a sum of corresponding plane waves. The ***Analysis*** button is active only if a result data is in the form of scanning versus angle or ***[Resonance](https://mcgrating.com/docs/common-crossed/resonance.html) ***was found or external data file is a scanning versus angle of complex reflected and/or transmitted amplitude calculated with switched on the ***Output Polarizer*** (Settings dialog -> Scanning page).
 The ***Analysis*** dialog contains several pages:

- ***General*** page informs about the geometry, pole functions definitions and input parameters. If ***[Resonance](https://mcgrating.com/docs/common-crossed/resonance.html)*** was found the user can switch the pictures with information by the ***Picture*** control. If the data was loaded from the external file, the edit fields become active and it is necessary to fill them with appropriate values and press the button ***Ok General***. The user also can add appropriate data at the end of the input data file after the blank line and in individual lines. The format is: value, double space or tab followed by specifications (Wl, Per, AngP, Nc, Ns, Pol).
- ***[Gauss (FFT)](https://mcgrating.com/docs/common/gauss-fft.html)*** page appears only if the result data is in a form of scanning versus the incidence angle.
- ***[Gauss (Pole)](https://mcgrating.com/docs/common/gauss-pole.html)*** page appears every time when ***[Resonance](https://mcgrating.com/docs/common-crossed/resonance.html)*** was found.

Under the pagers area there are three buttons:

- ***Calculate*** with obvious meaning. If the process takes long time the user can terminate calculations with the same button which changed its caption and functionality to ***Terminate***.
- ***OK*** saves the state of dialog and hides it.
- ***Cancel*** closes the dialog.

The controls of data format output to the ***Graph*** and to the ***Result window*** are also placed here. By default the output data always contains the Power option.

Depending on resonance type (single or double) the ***Single Resonance*** and ***Pole*** or the ***Double Resonance*** and ***Poles*** pagers appear. These pagers represent the appropriate resonance and poles parameters. Under these pagers the button ***Calculate*** is replaced with the button ***Data Window*** which provides ability to save the page information in data file.

**Note 1** Sometimes the *Graph* or *Result window* is not accessible with open *Analysis dialog*. In this case the user may press *OK* button to hide the dialog.

**Note 2** External data file, it is desirable to open by the program with the help of which it was created.

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