Help with 3-D interactive QM visualisation of a hydrogen atom

Click For Summary

Discussion Overview

The discussion revolves around creating a 3-D interactive visualization of a hydrogen atom, specifically focusing on simulating electron behavior based on quantum mechanics principles. Participants explore various programming platforms and libraries, as well as the feasibility and efficiency of different approaches to visualizing quantum states.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant proposes using C++ combined with Unreal Engine to create a simulation, suggesting a method of assigning probabilities to discrete points in 3D space based on the wave function.
  • Concerns are raised about the computational intensity of the proposed algorithm, with thoughts on potential efficiency improvements.
  • Another participant emphasizes the importance of the platform choice based on goals and audience, suggesting web-based visualizations for ease of sharing.
  • Several links to resources and libraries are shared, indicating possible tools for implementation, including GlowScript and GeoGebra.
  • There is a request for clarification on the objective of the visualization, with one participant seeking to confirm if the goal is to generate figures similar to atomic orbitals.
  • A later reply clarifies the intention to visualize "ghost" electrons appearing randomly in 3D space for user navigation, rather than static figures.
  • One participant expresses a desire to share the visualization with others but indicates a lack of familiarity with online platforms.
  • Participants discuss their familiarity with the necessary mathematics but highlight implementation challenges as a primary concern.

Areas of Agreement / Disagreement

Participants express varying opinions on the best platform and approach for the visualization, indicating no consensus on a single method or tool. There are multiple competing views regarding the effectiveness of different programming environments and libraries.

Contextual Notes

Limitations include uncertainties about the computational efficiency of the proposed algorithms and the specific requirements for visualizing more complex quantum states. Participants also note potential challenges in sharing visualizations online.

Who May Find This Useful

This discussion may be useful for individuals interested in quantum mechanics visualization, programming in C++ or Unreal Engine, and those exploring web-based platforms for scientific simulations.

AndreasC
Gold Member
Messages
555
Reaction score
317
TL;DR
I decided to do a 3D simulation/visualisation of the behavior of a hydrogen atom in various energy states. However I am not a programmer and I don't know what the best way to go about doing that would be.
First of all, I got to decide what I'm going to use to make the simulation. I know Fortran, Matlab etc but I'm pretty sure these won't help me much. I learned some C++ a couple years ago but my knowledge is rusty, however I think I'm going to use that combined with Unreal Engine, since it makes it easier to create the environment. Of course that means I'm going to have to learn some UE basics.

My idea was fixing the nucleus, and then splitting up the 3d space into discrete points, with probabilities assigned to them according to the wave function. I'm going to have one image of the electron representing the mean position which will be hardcoded, and then and then at each time step the program will pick random points all over the space and checking if it succeeds or fails in finding an electron there according to the probabilities. It will stop when a predetermined number of electrons has been found, say 20. At that point it will display ghost images of all these electrons all at once, to give the user a rough idea of the probability distribution. The actual algorithm may need some tweaks since it sounds like it might be somewhat intensive for a complicated wavefunction if I am to do this in every time step. Or maybe not, idk. I do have an idea to maybe make it more efficient though. Then maybe I could have another algorithm calculating the mean position of the ghost images and create another ghost image to compare it with the hardcoded result.

Is this a good approach? What else would you suggest? Could I potentially expand it for even more complicated states/atoms while maintaining any accuracy whatsoever? Is using Unreal Engine a good idea or are there better options?
 
Computer science news on Phys.org
Also I just realized that maybe this isn't the best section for this...

I also have an additional question, are there any libraries that could prove useful?
 
The platform depends on your goals (short term and long term) and your audience.

These days, I lean towards visualizations that I can easily share with others.
So, I prefer web-based platforms [in spite of some limitations].
If the limitations are too severe, then I'll opt for a specialized library.

Some possibly useful ideas:

https://www.wired.com/2016/03/can-solve-quantum-mechanics-classic-particle-box-problem-code/
https://www.wired.com/story/in-guardians-of-the-galaxy-vol-2-planet-sovereign-defies-physics/
https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/HardSphereGas-VPython

https://www.geogebra.org/m/mfQhepUA
http://www.falstad.com/qmatom/index.html
 
  • Like
  • Informative
Likes   Reactions: pbuk and AndreasC
I'm trying to understand your objective. It sounds like you want to be able to generate figures like the following. Is that correct?https://en.wikipedia.org/wiki/Atomic_orbital

1595689624657.png
 
anorlunda said:
I'm trying to understand your objective. It sounds like you want to be able to generate figures like the following. Is that correct?https://en.wikipedia.org/wiki/Atomic_orbital

View attachment 266835
Well, sorta. I want to do this except I want to visualise the concept by "ghost" electrons appearing randomly in 3d space that the user can navigate around.
 
robphy said:
The platform depends on your goals (short term and long term) and your audience.

These days, I lean towards visualizations that I can easily share with others.
So, I prefer web-based platforms [in spite of some limitations].
If the limitations are too severe, then I'll opt for a specialized library.

Some possibly useful ideas:

https://www.wired.com/2016/03/can-solve-quantum-mechanics-classic-particle-box-problem-code/
https://www.wired.com/story/in-guardians-of-the-galaxy-vol-2-planet-sovereign-defies-physics/
https://www.glowscript.org/#/user/GlowScriptDemos/folder/Examples/program/HardSphereGas-VPython

https://www.geogebra.org/m/mfQhepUA
http://www.falstad.com/qmatom/index.html
I do want to share it with others, that is my goal. However I am not familiar with online platforms. What would you recommend?

I am more or less familiar with the math required to solve the problems either numerically or analytically, my issue is primarily with the implementation. Although I may discover more problems as I go along.

I can't check it right now but on the surface your final link looks like it might be pretty useful.
 

Similar threads

  • · Replies 26 ·
Replies
26
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
1
Views
2K
Replies
18
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 2 ·
Replies
2
Views
3K