The wave equation in various domains

Published 2024-04-20
I've been experimenting with solving the wave equation numerically for the past few days. I wrote a Java program from scratch to do this, and here's what's come of it. I've decided not to put the source on GitHub since it's kind of terrible, but the code is somewhat similar to the double-slit experiment demo on my website if you're interested in building a similar program.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

0:00 - Intro
0:47 - Wave in a rectangle
2:02 - Wave in an ellipse
3:48 - Wave in a lens
5:37 - Wave in a stadium
6:52 - Wave in a regular hexagon
8:15 - Wave in a regular pentagon
9:34 - Outro

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Discord: discord.gg/2mmN2aR6SPa
vTubers.Me: vtubers.me/zenzicubic
Twitter: twitter.com/zenzicubic
Website: zenzicubic.dev/

All Comments (4)
  • @JesseHersch
    Try launching the wave from someplace off center so the symmetry is broken. Then the chaotic nature of the stadium will be apparent. Especially compared with the regular shapes
  • @KW-12
    Spectacular simulation. Thanks for sharing. Now try doing one with difussion also! :)
  • @henrytjernlund
    Awesome. What would happen if the outer boundary was changing, either in scale or by rotation?