The CEM community is famous by its lack of open-source ethos and most source codes are kept in secret due to historical, commericial and political reasons.
This repository contains 7 Matlab scripts that elaborate the classical and fancy numerical algorithms for simulating Maxwell Equations in 2D. Three of the scripts (scalarFEMABC.m, scalarFEMPML.m, vectorFEMABC.m) are for frequency domain simulation and the others (2D_FDTD_PML.m, scalarFETD.m, hybrid_FETD_FDTD.m, scalarDGTD.m) are for time domain simulation. All scripts are extremely user friendly in that all components such as preprocessing, PDE computation, posprocessing, and etc have no dependency on other softwares and libraries. The user can simply run the codes and visualize the results with a single click.
scalarFEMABC.m
vectorFEMABC.m
scalarFEMPML.m
2D_FDTD_PML.m
For more details, see 2D_FDTD_with_PML_based_on_Matlab.pdf
.
scalarFETD.m
hybrid_FETD_FDTD.m
scalarDGTD.m