A 2D diffraction simulator written in the Wolfram Language. The notebook (.nb) contains a detailed and documented version of the code. The KDS-script (.m) is a script that can be used to run directly from the terminal. The command to run the script:
math -run "<<KDS-Script.m"