Inkstone simulates the electromagnetic properties of 3D and 2D multi-layered structures with in-plane periodicity, such as gratings, photonic-crystal slabs, metasurfaces, vertical-cavity or photonic-crystal surface-emitting lasers (VCSEL, PCSEL), (patterned) solar cells, nano-antennas, and more.
Internally, Inkstone implements rigorous coupled-wave analysis (RCWA), a. k. a. Fourier Modal Method (FMM).
- the reflection, transmission, and absorption of the structure
- the total and by-order power fluxes of the propagating and the evanescent waves in each layer
- electric and magnetic field amplitudes at any locations in the structure,
- band-structures based on the determinant of the scattering matrix of the structure.
- It supports efficient and flexible parameter-scanning. You can change part of your structure such as the shapes and sizes of some patterns, or some material parameters. Inkstone only recalculates the modified parts and produces the final results efficiently.
- It allows both tensorial permittivities and tensorial permeabilities, such as in anisotropic, magneto-optical, or gyromagnetic materials.
- It can calculate the determinant of the scattering matrix on the complex frequency plane.
- Pre-defined shapes of patterns can be used, including rectangular, parallelogram, disk, ellipse, 1D, and polygons. Closed-form Fourier transforms and corrections for Gibbs phenomena are implemented.
- It is fully 3D.
- It is written in pure python, with heavy-lifting done in numpy and scipy.
$ pip install inkstone
Or,
$ git clone git://github.com/alexysong/inkstone
$ pip install .
The examples folder contains various self-explaining examples to get you started.
- python 3.6+
- numpy
- scipy
We adopt a natural unit system, where vacuum permittivity, permeability, and light speed are
Sign conventions in electromagnetic waves:
where
By this convention, a permittivity of
(Inkstone, Incident
For
In 2d simulations (1d grating), the space is assumed to be in
-
Ver 0.3:
Solved the convergence issue at Wood's anomaly. Now the calculation maintains the same convergence, stability, and speed near and at Wood's anomaly.
If you find Inkstone useful for your research, we would appreciate you citing our paper. For your convenience, you can use the following BibTex entry:
@article{song2018broadband,
title={Broadband Control of Topological Nodes in Electromagnetic Fields},
author={Song, Alex Y and Catrysse, Peter B and Fan, Shanhui},
journal={Physical review letters},
volume={120},
number={19},
pages={193903},
year={2018},
publisher={American Physical Society}
}