My particle simulation version of the Double Slit experiment

In summary, the conversation revolves around a program created in Java that simulates the behavior of particles passing through a slit. The creator has not used wave equations and is not simulating waves or wave interference. The code is available on GitHub and the conversation raises questions about the accuracy of the simulation and its basis in physics. The creator plans to add more features to the program.
  • #1
sqljunkey
181
8
I created this in java just a while ago.
 
  • Like
Likes sophiecentaur and PeroK
Physics news on Phys.org
  • #2
Very nice. Interesting pattern formed by the particles after passing through the slit. Have you just modeled them as classical particles?
 
  • #3
Thanks,
All classical, the particles are random none of them collide with each other, only with the slits.
I opened the slits more and made the center thinner and the effect is more visible.

 
  • Like
Likes Drakkith
  • #4
It's great when someone has taken the trouble to do something like this. Something that we all talk about but never actually get round to doing.
The range of densities in actually a lot easier to see than with the traditional humped graph. The thickness of a graph line makes a linear graph hard to read near zero. The brain makes a much better job and we easily 'see' extremes of density.
I assume you take the standard interference pattern equation and use that to calculate the probabilities (?).
 
  • #5
sophiecentaur said:
It's great when someone has taken the trouble to do something like this. Something that we all talk about but never actually get round to doing.
Thanks!

sophiecentaur said:
I assume you take the standard interference pattern equation and use that to calculate the probabilities (?).
I didn't use wave equations. You can look for yourself I uploaded the code : https://github.com/sqljunkey/sim.particle all the action happens in Engine.java .

I'll probably add some sliders and input bars, I want to open many slits and see if I can simulate diffraction grating next.

Fun stuff :)
 
  • #6
sqljunkey said:
You can look for yourself I uploaded the code :

I tried to make sense of the code but I gave up. I don't know Java - sorry - and I couldn't locate the core operation amongst all the declarations of variable types etc.. If you haven't included some (perhaps implied) wave behaviour then how do you get an interference pattern? Did you go straight from an idea in your head to the code? I know that's often the way stuff is done but it does make communication difficult from person to person. What's it all based on (no code please)?
 
  • #7
sqljunkey said:
You can look for yourself I uploaded the code : https://github.com/sqljunkey/sim.particle all the action happens in Engine.java .
As I read the code, you are sending small solid balls towards the screen and when they collide with the edge of a slit you are adding a fixed transverse amount to their momentum. This isn't simulating the double slit in either classical or quantum mechanical form.

I don't think there's any way of getting a plausible simulation without using some of the mathematics of wave propagation - interference requires the possibility of negative amplitudes.
 
  • Like
  • Informative
Likes nasu and sophiecentaur
  • #8
I coded this thinking how something like a black hole with the mass of the moon traveling at high velocity to the sun would get caught in it's orbit for a brief time and then escape. Since the moons would be of the same size all the time the orbit escape angles would be nearly the same for a range of "orbit entering positions". That is not what actually happens with particles probably, but that is(I think) what creates the effect you see.
 
  • #9
Nugatory said:
I don't think there's any way of getting a plausible simulation without using some of the mathematics of wave propagation - interference requires the possibility of negative amplitudes
Not only negative values but a continuum of phase.
Cheers for finding the problem with the code. I do hate it when the Physics, Maths or Logic of a process is only described in esoteric code; it can so easily lose me.
This is something that makes me very suspicious of simulations in general and particularly 'simulations' that are included in some games, which are just written to give a 'convincing' picture for a limited range of conditions.
 
  • #10
sqljunkey said:
I coded this thinking how something like a black hole with the mass of the moon traveling at high velocity to the sun would get caught in it's orbit for a brief time and then escape. Since the moons would be of the same size all the time the orbit escape angles would be nearly the same for a range of "orbit entering positions". That is not what actually happens with particles probably, but that is(I think) what creates the effect you see.
It's a nice looking animation (and pretty convincing as a one off demonstration) but not based on any accurate physics at all, I'm afraid. Neither the physics of waves nor the likely behaviour of objects around black holes.
It would be very easy to include some proper wave calculations to give a probability distribution of your animated particles. The rest of the application would work as it is.
 
  • #11
Nugatory said:
As I read the code, you are sending small solid balls towards the screen and when they collide with the edge of a slit you are adding a fixed transverse amount to their momentum. This isn't simulating the double slit in either classical or quantum mechanical form.

I could change the momentum to be proportional to the distance and it would probably be the same thing. Probably even better. and I'm not simulating waves and wave interference.
 
  • #12
sqljunkey said:
I could change the momentum to be proportional to the distance and it would probably be the same thing. Probably even better. and I'm not simulating waves and wave interference.

The same as what? It certainly won't be the same as simulating waves, if that's what you meant.
 
  • #13
sqljunkey said:
I could change the momentum to be proportional to the distance and it would probably be the same thing. Probably even better. and I'm not simulating waves and wave interference.
Your thread title suggests something fairly different from that.
 
  • #14
sqljunkey said:
I'm not simulating waves and wave interference.
That is correct, although someone reading the thread title might be forgiven for thinking that you were trying to.

In fact, you are simulating a system in which balls are fired towards an array of immobile demons that capture some of the incoming balls and throw them in a different direction. Depending on how you program the demons you should be able to get pretty much any pattern you want.
 
  • Like
Likes nasu

1. What is the purpose of a particle simulation of the Double Slit experiment?

The purpose of a particle simulation of the Double Slit experiment is to understand the behavior of particles, such as electrons or photons, when they are passed through two narrow slits. This experiment helps to demonstrate the wave-particle duality of matter and the concept of interference.

2. How does the simulation work?

The simulation works by using algorithms and mathematical models to simulate the behavior of particles as they pass through the double slits. It takes into account factors such as the size of the slits, the distance between them, and the speed of the particles to create a realistic representation of the experiment.

3. Can the simulation accurately represent the results of the actual Double Slit experiment?

Yes, the simulation can accurately represent the results of the actual Double Slit experiment. However, it should be noted that the simulation is based on mathematical models and may not perfectly replicate the exact results of a physical experiment due to factors such as measurement error and external influences.

4. What can we learn from a particle simulation of the Double Slit experiment?

A particle simulation of the Double Slit experiment can help us understand the fundamental principles of quantum mechanics, such as wave-particle duality and the concept of interference. It can also provide insights into the behavior of particles at a microscopic level and how they interact with their environment.

5. Are there any limitations to using a particle simulation for this experiment?

While particle simulations can provide valuable insights, they do have limitations. They are based on mathematical models and may not perfectly replicate the results of a physical experiment. Additionally, the simulation may not be able to account for all external factors that can influence the behavior of particles in the experiment.

Similar threads

  • Quantum Physics
2
Replies
36
Views
1K
Replies
3
Views
832
  • Quantum Physics
Replies
4
Views
748
Replies
11
Views
701
  • Quantum Physics
Replies
9
Views
722
Replies
3
Views
725
Replies
26
Views
1K
Replies
30
Views
3K
Replies
5
Views
891
Back
Top