Installation of Mathematica®

♯SHAARP.ml is written as a notebook using Wolfram Language and need to run with Mathematica®. However, a Mathematica license is not a prerequisite to run the package.

Mathematica® Notebook

  • Instructions to install Mathematica® (licensed) may be found here.
  • If you already have a Wolfram account, you can log in through the portal and download the software.

Wolfram Player

  • Wolfram Player is a free software offered by Mathematica® to interact with Mathematica® Notebook.
  • Wolfram Player is a free download and can be used to view and interact with Mathematica® notebooks, but doesn't provide any editing functionalities

Installation and Initialization of SHAARP.ml

Note

It is recommended to keep all the files in the same directory to access all the features provided by SHAARP.ml.

  1. Unzip the file. Open the main notebook file SHAARP_ml_Vx.xx.nb​ using Mathematica® or Wolfram Player.

  2. Making sure that Dynamic Evaluation is enabled, evaluate the notebook by clicking Evaluation > Evaluate from the menu bar. This process clears the definitions from the other currently open notebooks.

  3. The main panel should now be visible after sometime. Please give at least 10 seconds for the initialization process. If you face issues, please re-evaluate the notebook or restart Mathematica.

  4. See Warning message of SHAARP in FAQ

  5. mainpanel

The main panel contains the following sub-panels:

  • Input panel for providing the material properties, polarimetry settings, simplifying assumptions, etc
  • Output panel to display the optics geometry, generated polar plots, Maker fringes, partial analytical expressions, etc.
  • Update button to run the calculations after specifying the various input parameters. Note that there are two more update buttons (one each in the input and output panels) and all of them are equivalent.
  • Progress bar to indicate the progress of the calculation after clicking Update