Manual: Scripting¶

Use Python scripts for full control of calculations.

..note:: The easy way to point the MSTM binary in script is the usage of the os module:

import os
os.environ['MSTM_BIN'] = 'your path to mstm binary'

The default path is ‘~/bin/mstm.x’

  • Materials
    • Constant Material
    • Loading from file
    • Material from numpy array
    • Material class members
    • Analytical formula for AuAg
    • Size correction for dielectric functions
  • Simple functions and Mie theory
    • Example
    • Classes
  • Spheres setup
    • Example: particles aggregate
    • Classes
  • MSTM run
    • Example: core-shell particle
    • Class
  • Visualization of near field
    • Example: field distribution near two particles
    • Class
  • Non-spherical particles
    • Example
    • Classes
  • Fitting
    • Example: fit with Mie theory
    • Fitter class
  • Constraints
    • Example: fit by core-shell
    • Constraints classes

MSTM-studio

Navigation

  • Installation
  • Manual: GUI
  • Manual: Scripting
    • Materials
    • Simple functions and Mie theory
    • Spheres setup
    • MSTM run
    • Visualization of near field
    • Non-spherical particles
    • Fitting
    • Constraints

Related Topics

  • Documentation overview
    • Previous: Fitting and constraints
    • Next: Materials

Quick search

©2020, Leon Avakyan. | Powered by Sphinx 1.8.6 & Alabaster 0.7.13 | Page source