Light ray simulator? Snell's law/refraction

  • Context: Undergrad 
  • Thread starter Thread starter Tom Holly
  • Start date Start date
  • Tags Tags
    Light Ray Simulator
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
Tom Holly
Messages
2
Reaction score
0
I would like to simulate a light ray hitting and refracting through a transparent freeform shape.

Any advice on software which will do this easily? I want to just draw the shape, point the light at it, and see where the beam goes.

Tom
 
Physics news on Phys.org
You seem to be after a ray tracing program. The light from your light source can be treated as a set of parallel rays and they will all follow different paths through the system, sometimes becoming diffused and sometimes being focussed etc.. There have been many such programs written and they work using a step by step (piecewise linear) model. Ray tracing is used to model all kinds of wave propagation and Wiki discusses the basics.
It wouldn't be too hard to write your own - if you are familiar with programming in almost any language. When I started life as a broadcast engineer, I was involved with a program that traced the progress of radio waves through the ionosphere, for predicting levels of received signals. A piece of cake, these days, for fast computer but a real slog for an old Elliot 803.

Oh look - I just found this!
 
thanks for the advice. I initially thought about a ray tracer, but it would be overkill.

I found this neat little app which does what I want. https://chrome.google.com/webstore/detail/ray-optics-simulation/egamlemiidmmmcccadndbjjihkcfiobh

Tom