The building of FORTRAN/C codes extending the original FDTD and the Perfectly Matched Layer (PML) to complex situations (anisotropic, chiral, etc.) is often a time-consuming task. MATHEMATICA® can help us in this, since it can generate FORTRAN/C pieces of code starting from the original FDTD equations written in a quasi-analytical form.
Here are four simple examples of MATHEMATICA® notebooks which produce FORTRAN codes for:
A last example showing how to take profit of the same layout to get the dispersion relation of Yee-scheme can also be downloaded.
These simple MATHEMATICA® notebooks are written with a structure which may not be the most elegant or optimal one. Anybody is welcome to improve these codes or create new ones that we will be pleased to include here (drop an email to email@example.com or to firstname.lastname@example.org)
Those files can be freely read without installing MATHEMATICA® employing the MATHREADER® tool.
Last updated, January, 24th, 2006
by Salvador González García