• Stars
    star
    114
  • Rank 308,031 (Top 7 %)
  • Language
    Jupyter Notebook
  • License
    MIT License
  • Created almost 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

modules for semi-analytic fourier series solutions for Maxwell's equations. Includes transfer-matrix-method, plane-wave-expansion-method, and rigorous coupled wave analysis (RCWA).

Python Rigorous-Coupled-Wave-Analysis PACKAGE

A collection of extremely inter-related semi-analytic fourier series solutions for Maxwell's equations written in python. This package actually contains three different methods:

  1. TMM: classical transfer matrix method applicable for analyzing the propagation of light through uniform, finite thickness layers
  2. Plane Wave Expansion Method: essentially solves Maxwell's equations in k-space.
  3. RCWA: a synthesis of TMM and PWEM to analyze the transmission of light through layered structures with periodic patterning

The organization of the package is centered around modules which can run a simulation for each of the three methods, given the correct inputs from the user. The coding paradigm is most similarly to procedural programming. There are basically no objects anywhere in the code (in my opinion objects can quickly bury lower level functionalities that researchers might want to quickly access,test, and/or modify).

The structure of much of the code, particularly the RCWA is based on EMPossible (formerly EMLab) notes (https://empossible.net/academics/emp5337/). These notes provide a good reference.

Prerequisites and Installation

Make sure you have a functional version of python 3 with numpy, scipy, and matplotlib. (Python 3 is required because we use the @ symbol for matrix multiplication) Simply clone the package into your local directory and you should be ready to go.

USAGE

Right now, the package is partitioned by the type of numerical method used. Examples for each method are in the folder "method_name"_examples. These examples should give you a sense of how to use the simulation functions

Examples

We show a few exemplary examples from each method to illustrate its functionality

First TMM

TMM is usually the 'intellectual' precursor to RCWA. It assumes different layers but each layer has no structure (could be anisotropic however) A simple demonstration of TMM can be done by reproducing the spectrum of a Bragg grating. Alt Text

Or the Drude model Alt Text

PWEM

Plane wave expansion method is simply the solution of Maxwell's equations in Fourier space.

We benchmark the code using a photonic circle.

Here, we demonstrate several reconstructed modes in real space below Alt_Text

Transitioning to RCWA

RCWA is a synthesis of TMM and PWEM in that it targets layered structures whereby each layer contains some sort of periodic pattern In this package, we implement RCWA to handle layers with periodicity along one direction (perpendicular to the propagation direction) or both.

Alt Text

References https://www.osapublishing.org/josa/abstract.cfm?uri=josa-71-7-811

Authors

Nathan Zhao

More Repositories

1

cluster_monte_carlo

Exploration of metropolis-hastings (local) and Uli Wolff (cluster) algorithms on the Ising Model
Python
23
star
2

py-maxwell-fd3d

A functional and efficient python implementation of the 3D version of Maxwell's equations
Jupyter Notebook
22
star
3

FDFD_modules

personal set of FDFD codes used for my research. Much of this has been inspired by Yu (Jerry) Shi and Wonseok Shin
Jupyter Notebook
17
star
4

RCWA_Stochastic_Optimizer

Stochastic Optimization with rigorous-coupled-wave-analysis (RCWA)
MATLAB
14
star
5

eigenwell

finite difference based eigensolving for Maxwell's equations and photonic structures
Jupyter Notebook
13
star
6

finite_difference_domain_decomposition

implementation of finite difference frequency domain equations for Maxwell's equations and the exploration of domain decomposition, specifically Schur complements
MATLAB
13
star
7

pythonFDTD

some basic algorithms explored on the Yee Grid in FDTD
Python
10
star
8

Captcha-Breaker-With-CNNs

Collaboration on using CNNs for reading distorted letters common in CAPTCHA systems. Autumn 2017 Stanford CS229 Best Poster in Computer Vision
Python
6
star
9

shanks_born_series_fdfd

MATLAB
6
star
10

fdfd-armadillo

implementation of fdfd in C++
Jupyter Notebook
4
star
11

orbital_dynamics

simulating complex Newtonian dynamics with the Runge-Kutta algorithm
MATLAB
4
star
12

molecular_dynamics

exploration of MD simulations in MATLAB using the Verlet integrator
MATLAB
3
star
13

quantum_monte_carlo

implementation of determinant quantum monte carlo with some numerical enhancements for low temperature
MATLAB
2
star
14

pymatgen_materials_project_api_miner

python code to construct useful atomistic and structural features for machine learning on materials
Python
1
star
15

CS230-Deep-Learning-NLP

CS230 Project in NLP and Deep Learning for Digital News Sentiment Analysis
Python
1
star