14
$\begingroup$

I'm looking for software that will give billiard trajectories in arbitrary plane polygons. After much work I was able to produce this figure.

alt text (source)

It was a good exercise, but at this point I wonder if scripts already exist.

I've heard if the angles are rational multiples of pi you can unfold the polygon so the billiard flow in the polygon becomes the geodesic flow on a translation surface.

$\endgroup$
9
  • 2
    $\begingroup$ It's not quite what you want, but you might be interested in McBilliards : mcbilliards.sourceforge.net $\endgroup$ Commented Aug 3, 2010 at 3:32
  • 9
    $\begingroup$ Richard Schwartz (webpage here : math.brown.edu/~res ) has done an enormous amount of computer-aided investigations of billiards. You might want to look at his webpage and possibly contact him -- he would certainly know if anything like this exists. $\endgroup$ Commented Aug 3, 2010 at 3:37
  • 2
    $\begingroup$ On top of what Andy says, let me add that Rich is extremely amiable and helpful, and you shouldn't hesitate to contact him. :) $\endgroup$ Commented Aug 3, 2010 at 3:53
  • 2
    $\begingroup$ Like many others, I also have implemented billiards programs, but my code is ad hoc rather than a general script. I would like to offer one caveat: it is challenging to control the numerical errors. After a large number of reflections, the results can easily become random nonsense. $\endgroup$ Commented Aug 3, 2010 at 12:26
  • 3
    $\begingroup$ @John Mangual: It depends on what you seek to learn from your simulation. A billiard ball shot off at a rational multiple of $\pi$ angle behaves rather differently than does one shot at an irrational angle. And with standard computer arithmetic, your billiards are all shot at rational angles. If either what you care about does not depend on the rational/irrational distinction, or you don't run your simulation long enough to reach the end of your bit precision, then numerical issues are not relevant. Otherwise they are. $\endgroup$ Commented Aug 3, 2010 at 16:22

2 Answers 2

3
$\begingroup$

You might find The Billiards Simulation useful. It seems to be a student project aimed at helping people visualize a chaotic dynamical system.

This is not an exact answer to your question. The program described at https://serendipstudio.org/chaos/doc.html handles regular polygons, circles, ellipses, and "stadiums" (half-circles joined by straight lines), and not arbitrary plane polygons which you are looking for. You might want to contact the authors for additional information.

$\endgroup$
0
1
$\begingroup$

DynamicalBilliards.jl is a library for the programming language julia that is targeted at billiards simulations.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .