Meep (or MEEP) is a free finite-difference time-domain (FDTD) simulation software package developed at MIT to model electromagnetic systems.
To learn more about MEEP please visit its homepage. Here I will explain minimum steps to employ MEEP engine in a sample CPP code.
 Download MEEP package for Windows from here.
 Extract it in a directory without any spaces and open the root folder (iMEEP_v.*)
 Open MEEP console (Console.exe). You will execute all commands in this console from now on.
 The default directory is
~/projects which physically locates at “root_directory\home\minGW\projects”. In the project folder there is a minimal sample CPP code (test.cpp).
 To compile this sample code run the following command in the console
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig g++ -malign-double test.cpp -o run -lmeep -lhdf5 -lz -lharminv -llapack -lblas -lm
 This will generate run.exe for you. Now you can execute the code with the following command
 To convert output H5 files into PNG images, run the following commands in the console. For more information about how to use “h5topng” package visit here
cd results* h5topng -S3 -Zc /share/h5utils/colormaps/dkbluered -o image.png h5_file.h5