This repository contains FDTD simulation scripts in Python and C for the graduate EM course at the National and Kapodistrian University of Athens.
You need to download the repo, the required python libraries and compile the C extention module.
git clone https://github.com/ShadyStokes/FDTD
cd FDTDFor the 3D simulation:
cd 3d
makeThis will compile the module FDTD/3d/fd3d.so which is then imported by FDTD/3d/*.py. You may then run
python fd3d_0.pyMake sure the libraries in FDTD/requirements.txt are installed. This can be done via:
pip install -r requirements.txt(note that this command will only work as-is if you're in the FDTD directory, otherwise you'll have to change the path to requirements.txt)
The output will be in FDTD/3d/img