@brandonb_phy Interesting how it becomes very non-localized for a while then there’s some kind of interference pattern, looks like beats. Is it interfering with its own reflections?
@JamesHMcLaren What you are seeing is the probability amplitude of where the particle might be; The wave does interact with itself! The initial localization is a hand-crafted solution in order for it to have some initial shape. As it progresses and encounters the potential barrier, and will be reflected which causes the complicated interaction.
@JamesHMcLaren All I did was implement the solution to the time-independent Schrödinger equation! The rest of the behavior evolves out of the solution for the time-dependent equation. (See photo)
In general, the wave will 'want' to dissipate but because there are potential barriers (that in this simulation can not penetrate), the whole wave will spread out in the box and self-interact. So you are seeing constructive and destructive interference. The wave equation itself is a combination of stationary waves that will have different frequencies. Because these are all re-calculated for each time frame, it is the case that the frequency of the probability density will change with time as well.