Billiard in a Reuleaux triangle

Поделиться
HTML-код
  • Опубликовано: 21 май 2021
  • Seeing the billiard in a Reuleaux triangle was a wish by several viewers (including, I believe, Carmen, Bogdan, Auferen, Bluelightzero and Jonathan), so here it finally is! The Reuleaux triangle is a shape of constant width. You can build it by starting from an equilateral triangle, and then adding to each side a circular arc centered on the opposite corner. The angles of such a triangle measure 120°, like those of a hexagon, and we can see some similar features in the evolution of wave fronts. In addition, the curved faces produce a phenomenon that we have seen for the elliptical billiard, namely the fractal rainbow zigzags due to almost tangent trajectories colliding arbitrarily often with the boundary. As you cannot pave the plane with Reuleaux triangles, however, the wave fronts don't reconnect quite as perfectly as in the case of the hexagon.
    Music: "Your Suggestions", by Unicorn heads‪@UnicornHeads‬
    Check out this version by Share SailCG: • Billiard in a Reuleaux...
    Current version of the C code used to make these animations: github.com/nilsberglund-orlea...
    www.idpoisson.fr/berglund/sof...
    Some outreach articles on mathematics:
    images.math.cnrs.fr/_Berglund...
    (in French, some with a Spanish translation)
  • НаукаНаука

Комментарии • 100

  • @patrickhodson8715
    @patrickhodson8715 3 года назад +36

    Interesting how some portions of the circle get shredded to rainbow pieces and other parts continue to be segments until the end

  • @KrasBadan
    @KrasBadan 3 года назад +59

    Wow. Actually this is the best shape for now.

    • @NilsBerglund
      @NilsBerglund  3 года назад +6

      Glad you like it!

    • @buidinhnguyenngoc4326
      @buidinhnguyenngoc4326 3 года назад

      How bout that Bestagon

    • @eightbayit1346
      @eightbayit1346 3 года назад +1

      I would like to see a shape with curved and normal sides

    • @NilsBerglund
      @NilsBerglund  3 года назад

      See ruclips.net/video/q1Rmjhp0UcQ/видео.html

    • @clementdenis4212
      @clementdenis4212 3 года назад +3

      My favorite were the lemon and the bestagon but this one is easily one of the best too.

  • @mene9748
    @mene9748 3 года назад +22

    This channel is so underrated, glad i found it

  • @non-inertialobserver946
    @non-inertialobserver946 3 года назад +14

    Woah this one is particularly beautiful

  • @mattiarecchi4024
    @mattiarecchi4024 3 года назад +4

    It's awesome to think that add a little imperfections in the symmetry of shape bring to an uniform distribution of points instead of this beautiful draw

    • @NilsBerglund
      @NilsBerglund  3 года назад +1

      Not all perturbations of the shape will give a uniform distribution, though some of them, similar to the Bunimovich stadium, will.

  • @timothyvincent4194
    @timothyvincent4194 3 года назад +8

    You should try doing something in hyperbolic space. Or maybe have boundaries that change the speed of the particles.

    • @NilsBerglund
      @NilsBerglund  3 года назад +6

      Thanks for the suggestions. Hyperbolic space has been suggested by a few others. It is doable, but requires some work to implement computing geodesics. Changing the speed is also possible, though I'd have to think about what is physically intresting.

    • @Selicre
      @Selicre 3 года назад +1

      @@NilsBerglund Ooh, maybe something with refraction? Such that not only the speed, but also the angle of the particles is changed.

    • @NilsBerglund
      @NilsBerglund  3 года назад

      @@Selicre I did simulations with refraction for waves. I suppose I could try it with particles too, thanks for the idea!

  • @ARBB1
    @ARBB1 3 года назад +9

    Interesting how the converging behavior so quickly leads to noise

    • @NilsBerglund
      @NilsBerglund  3 года назад +5

      The noise seems to be due mainly to particles that are almost tangent to the boundary. This causes strong dispersion, as for Sinai billiards.

  • @italolima855
    @italolima855 3 года назад +5

    I think it would be cool if you did some simulations with reflection and refraction in different shapes/refractive index.

    • @NilsBerglund
      @NilsBerglund  3 года назад +2

      I already made a few, for instance ruclips.net/video/JLXAR2PYecI/видео.html and ruclips.net/video/Q8P4iL6ZafQ/видео.html
      I have a few more in mind...

  • @JorgeLuis-ts6qp
    @JorgeLuis-ts6qp 3 года назад +2

    Love it and hate its lack of continuity at the same time.

  • @GregtheGrey6969
    @GregtheGrey6969 3 года назад +2

    Absolutely stunning...thank you.

  • @Mortiis558
    @Mortiis558 2 года назад

    It's really cool how the image starts to look as if it is rotating at around the 2:30 mark

  • @greateridahomapping7722
    @greateridahomapping7722 3 года назад +2

    Dutch Rollercoasters

  • @stevesta9755
    @stevesta9755 3 года назад +6

    amazing, are you gonna do more reuleaux polygons

    • @NilsBerglund
      @NilsBerglund  3 года назад +5

      Thanks, I will probably do a few more now I have coded them, as well as similar shapes with sides curved inward, which are also quite interesting.

    • @Operational117
      @Operational117 3 года назад +1

      @@NilsBerglund
      Splendid! Every new shape always seems to surprise us by how the reflections behave!
      This one in particular did things I did not expect it to do!

  • @AmaroqStarwind
    @AmaroqStarwind 3 года назад

    Now I want a fractal pattern made out of these, surrounded by a fractal grating.

  • @Some.username.idk.0
    @Some.username.idk.0 3 года назад

    Glad you are back to this

    • @NilsBerglund
      @NilsBerglund  3 года назад

      I never stopped making these, I just alternate between different types of simulations.

  • @orangereplyer
    @orangereplyer 3 года назад +4

    I love this channel so much. How do you avoud floating point errors when generating the animation?

    • @NilsBerglund
      @NilsBerglund  3 года назад +5

      Thanks! I cannot avoid floating point errors, and you occasionally see their effect, for instance near corners of the billiard. But since I compute exact formulas for the intersection points and angles, these errors are much smaller than if I would compute them be some numerical approximation procedure.

    • @animowany111
      @animowany111 3 года назад

      @@NilsBerglund How large of an effect does using longer floats (80-bit? 128-bit?) or some sort of arbitrary precision type have for this sort of billiard?

    • @NilsBerglund
      @NilsBerglund  3 года назад

      @@animowany111 It all depends on how unstable the dynamics is. Chaotic billiards have a positive Lyapunov exponent, meaning round-off errors are multiplied by some roughly constant amount at each bounce. Higher precision will add a few bounces that can be reliably simulated, but not more.

  • @sailcg
    @sailcg 3 года назад

    great job!i like it!

  • @xicad1533
    @xicad1533 3 года назад

    This one is my favorite so far

  • @nanamacapagal8342
    @nanamacapagal8342 3 года назад

    Best one so far

  • @adrien5568
    @adrien5568 3 года назад

    J'aime vraiment celui là !

  • @-NGC-6302-
    @-NGC-6302- 3 года назад

    Now I wanna see what it would do in other reuleaux shapes

    • @NilsBerglund
      @NilsBerglund  3 года назад

      I will probably make a few more soon.

  • @clementdenis4212
    @clementdenis4212 3 года назад +1

    Now I'm wondering what happens if you put a triangular wawe front in a circle.

  • @hexagon8899
    @hexagon8899 3 года назад +2

    i wonder how a 3d one will be

  • @Alpha13Wolf
    @Alpha13Wolf 3 года назад +1

    A concave one next.

    • @NilsBerglund
      @NilsBerglund  3 года назад

      There will be one in a couple of days!

  • @omerd602
    @omerd602 3 года назад +1

    Try it from a corner rather than the center maybe (since the Reuleaux triangle contains parts of circles centered on the corners)? Although I don't know if the result would be interesting (it pretty much all depends on how it computes the result of a particle hitting a corner)

  • @justinzandstra51
    @justinzandstra51 3 года назад +3

    I’m curious is there any math behind how these types of things work or do they just look cool and are fun to code? And if there is, is it something a second/third year math undergrad (like myself) would be able to follow?

    • @NilsBerglund
      @NilsBerglund  3 года назад +2

      Sure, there is quite a lot of math behind these. The Reuleaux triangle is not the easiest shape to start with. I would suggest you start with regular polygons (equilateral triangle, square, pentagon, etc, see ruclips.net/p/PLAZp3rbgWLo1ojqhBU9cY8VPPZpHCSCSk ) for the link between angles and continuous/discontinuous behavior at the corners. There are interesting links with the angles' value and whether the polygon paves the plane. Circles and ellipses also involve relatively simple math. Sinai billiards and the stadium are more difficult, but the basic mechanism generating instability should be understandable.

  • @PhamThanhLoan311
    @PhamThanhLoan311 3 года назад +1

    A dazzling pattern for today, hm? Neato!

  • @minnarew
    @minnarew 3 года назад +2

    mmm good

  • @RooiGevaar19
    @RooiGevaar19 3 года назад +1

    5:48 Israel joined the show :D

  • @Tesseract_King
    @Tesseract_King 3 года назад

    I just had a thought... In a mixed billiard like this, any given origin point is going to have some proportion of angles that lead to a stable path, and some proportion of angles that lead to a chaotic path. I'm curious what a plot of that proportion would look like, as a heatmap.

    • @NilsBerglund
      @NilsBerglund  3 года назад

      That's a nice idea, thanks! This seems somewhat similar to computing the Lyapunov exponent averaged over all directions (Lyapunov exponents are a measure of the instability of trajectories). Maybe at some point I will show some plots in phase space, meaning here positions and velocities of collisions with the boundary.

  • @okkoheinio5139
    @okkoheinio5139 3 года назад +1

    You should make it so the starting circle goes through all the colors so we can see what portions originated where. Sorry if I'm a little hard to understand

    • @NilsBerglund
      @NilsBerglund  3 года назад

      I think I understand, you mean something like ruclips.net/video/A2okMHiNzMI/видео.html right?

    • @okkoheinio5139
      @okkoheinio5139 3 года назад

      @@NilsBerglund yes
      Although the current one looks very pretty, too

  • @takeyourdamnmeds
    @takeyourdamnmeds 3 года назад +2

    reuleaux pentagon next?

    • @NilsBerglund
      @NilsBerglund  3 года назад +1

      There will be something similar in a couple of days!

  • @CarmenLC
    @CarmenLC 3 года назад

    woah funky o:

  • @h-Films
    @h-Films 3 года назад +1

    YAY

  • @captainantilles9094
    @captainantilles9094 3 года назад +2

    You’re gonna pay for this

  • @clown134
    @clown134 2 года назад

    is there anyway to compile all of these animations into a xscreensaver type thing or a animation desktop for use with deskscapes?

    • @NilsBerglund
      @NilsBerglund  2 года назад

      Anyone knowing how to do that is welcome to contact me via GitHub...

  • @Dovorans
    @Dovorans 3 года назад

    Is the Realeaux triangle a mixed billiard like the lemon billiard? The trajectories near the corners appear fairly regular compared to those of the lemon billiard.

    • @NilsBerglund
      @NilsBerglund  3 года назад

      I would expect it is mixed, though I did not try to prove it. A way of approaching the question would be to study the stability of the periodic trajectory hitting the center of each circular arc. It has the form of an equilateral triangle, and I would bet it is stable, producing regular motion, like the horizontal orbit in the lemon. Good candidates for chaotic trajectories are those near unstable ("hyperbolic") periodic trajectories. There are general methods for showing they exist, though they may be quite rare.

  • @thezwierz5563
    @thezwierz5563 3 года назад +5

    How many particles did you use for this video?

    • @NilsBerglund
      @NilsBerglund  3 года назад +5

      There are 10 000 particles in this one.

    • @NilsBerglund
      @NilsBerglund  3 года назад +2

      Not long. About the same time as the duration of the video, plus a few minutes to build the mp4 file from individual images.

    • @Selicre
      @Selicre 3 года назад

      @@NilsBerglund Have you tried piping image data directly to ffmpeg? I've used the `rawvideo` codec for my own projects and it cut down the total render time quite a bit since there was no need to write the intermediate PNGs.

    • @NilsBerglund
      @NilsBerglund  3 года назад

      @@Selicre I haven't tried that, but was looking for something like that. Are you able to control exactly when an imaged is piped to ffmpeg? For the wave/Schrödinger simulations, I am using the openmp library, which makes the real time simulations speed up and slow down depending on which other processes are running.

    • @Selicre
      @Selicre 3 года назад

      ​@@NilsBerglund It's not realtime at all - it simply accepts a raw stream of bytes, with framerate, pixel format & resolution specified via command-line flags. When this data is passed to it is irrelevant.

  • @gyzardo3648
    @gyzardo3648 3 года назад

    Make anything has entered the chat

  • @ShakeyBox
    @ShakeyBox 3 года назад +1

    If the circle started near one of the corners of this triangle, would the waves on the sides be bigger?

    • @NilsBerglund
      @NilsBerglund  3 года назад +2

      Possibly - something of that kind happens for the ellipse: ruclips.net/video/0arOgc5iVIs/видео.html

  • @mikeberezhkov7810
    @mikeberezhkov7810 3 года назад

    So is it a chaotic system? Or is it just accumulating error in the float number operations?
    Looks like all the mess happens in the "angles". It may be because of not existing tangent there.

    • @NilsBerglund
      @NilsBerglund  3 года назад +2

      It seems to be a mixed system, having both regular and chaotic trajectories. Most billiards seem to be of this type. But I don't have a proof for this - see my reply to Dovorans' comment on ways one could use to verify this.

  • @호랑좌
    @호랑좌 3 года назад +4

    Noice

  • @NoaKronor
    @NoaKronor 2 года назад

    triangle

  • @MrPies32
    @MrPies32 3 года назад

    what kind of implications does this have in science? why would someone want to know the motion of a billiard ball in a rouleaux triangle? Just curious!

    • @NilsBerglund
      @NilsBerglund  3 года назад +1

      That's a very good question. I don't know if the billiard in a Reuleaux triangle in particular has a concrete application (though you never know), I made this animation because some viewers thought, rightly so, it would give nice visuals. However in general, mathematicians and physicists are interested in how the shape of the boundary (presence or not of corners, smoothness, etc) influence the dynamics: when is it regular, when is it chaotic, or a mixture of both? This yields insights into the theory of dynamical systems. Quantum billiards may also have some more practical applications, for instance for electronic components.