

This way, an oblique wave is excited and recorded. Sets up both the source and the monitor planes such that they have a growing phase in space (done simply by harmonic modulation of the source amplitude). Using cdh.py, plot_cdh.py, computes and plots data for current-driven homogenization compares them with those obtained from s-parameters example_angle_frequency_scan

Runs scatter.py multiple times in frequency-domain, and then compares the results to the classical Fourier-transformed time-domain simulation example_current_driven_homogenisation Some of these examples are scans through a parameter of the structure. Uses scatter.py and effparam.py to retrieve the effective behaviour of a metamaterial using the Nichols-Ross-Weir (s-parameters) method. In a multiprocessing environment, it is recommended to launch it like export NP=4. Usually, everything you need to run an example is to change to its directory, and launch. Do not hesitate to contact me if you need some advice, new functionality or if you find a bug.įilip Dominec, - 2016 Examples using the simulation scripts I would be very happy if this project helps you with your thesis, homework or any publication. You are encouraged to clone this repository and to modify the examples to match your needs. I believe the presented scripts can be a great starting point for anybody doing their research on photonic crystals, metamaterials, integrated photonics and nanophotonics, cavity resonators, waveguides, etc. To demonstrate how to use them to simplify the simulation setup, I accompany these modules with several ready-to-use simulations of various typical problems. I therefore moved such code in the meep_utils.py and meep_materials.py modules. One can also seamlessly integrate them with powerful Python modules as numpy, scipy, matplotlib and many others.Īfter I set up several different realistic simulations with python-meep, I noticed that much of the Python code for initialisation, material definition, processing and data output can be shared. The simulation is defined by programming, with bindings to C/C++, Scheme, or Python I chose to use python-meep as Python is a user-friendly language that makes simple simulations (relatively) simple, and really complex ones possible. MEEP is a library of functions for numerical simulations of how electromagnetic waves propagate and interact with various structures it is a finite-difference time-domain solver of the Maxwell equations. I recommend to refer to the (semi)official meep pages, e.g. Since the improvements in meep and its Python bindings in 2018/19, following scripts are rather obsolete.
