1

Can anyone help shedding some light on how ripple tanks are programmed? example I'm looking to simulate light waves, to perform theoretical calculations, as opposed to for just visual effect. The ones I've found lack the ability to set a specific wavelength and place objects (e.g slits, walls) at specific locations.

1 Answers1

0

You can view the source code for your example by right clicking in your web browser and clicking "view source", then navigate inside the iframe and view its source. This link should work for chrome and firefox: example source code

There are always diverse scientific libraries available for python. Here are some I found in a quick search:
LightPipes for Python 2.0.9
LightPipes 8.3.3. Two holes interferometer.
Interactive visualization of propagation of light in Jupyter notebook

OpenFOAM is an opensource computational fluid dynamics package. It was mainly developed for physical fluids and works by solving the Navier–Stokes equations across an array of 2d or 3d cells. There have been some electromagnetic solvers that have been added. This might be a good solution if you are attempting to test with more complex geometry. Not sure that there is anything specifically for light, but they have a strong community so that might be something to look into.

ericnutsch
  • 8,305
  • 1
  • 16
  • 32