Would it be performant to make a quantum mechanic simulation in roblox?

I’ve seen molecular simulation of how vibrations travel through molecules before, but it hear it takes months to simulate just seconds of it, because it’s very complex. Is it possible to do it in roblox?

1 Like

Any computer is as good as any other for whether you “can” do something. Why specifically do you want to simulate this? If theres a gameplay reason, there’s probably a lot of things you can skip doing to make it faster.

1 Like

No, it’s not for gameplay, it’s for experimentation, I actually just want to do it.

1 Like

I’ve been studying up on Coulomb’s law and the Bohr model, trying to figure out how to script the uncertainty principle performantly and how to visually represent it. For example, how would I script electromagnetic waves? If I can script it in game, I can say I understand it. And after I script it, I want to do experiments, to see if certain systems work, like do certain molecules have the same behavior they have in real life?

1 Like

I think you’d get a long way before anything specific to Roblox got in your way, so go for it. I have done this for modeling fission events. The only thing I’d warn you about is that a lot of electromagnetics do not have very general solutions, or they require a lot of integral solving. Sometimes you can make a more specific problem which is easy to discretize and still be accurate, the common example is fluid flow.

2 Likes

The problem is I barely understand it, so I have a few questions. When the term “electric field” is used, there’s nothing physical about it, there isn’t another realm that it occupies, it’s just that if any body with a charge of +1 existed at any point in the field, it would have a certain force applied on it, based on the other bodies that interact with the field around it. Just this alone is already potentially not performant, if in the system we had numerous bodies, even in gravitational systems it can become unperformant when you have thousands of particles, so what’s an efficient way to go about this? Another question is that Coulomb’s Law is, by my knowledge, experimental, which means at certain distances, it’s not accurate (I believe based on my research, correct me if wrong), AND another limitation is that when it starts moving, as you may know, the magnetic force becomes involved, which is even more computations, I want to start, but I fear that the program will never start because my game will crash.

1 Like

Electric fields are a simplification a quantum thing that I don’t quite understand but has to do with how spins work, I am told they act “like” they are infinitely small loops of current. This is why Coulumbs is accurate for everyday distances but not quantum ones. Quantum is full of vector math whereas at a human scale we can get away with scalars for things like charge. Since gravity is pretty much a simpler version of electrostatic force, there are some examples of solvers that can cope with lots of bodies (charges). You’d have to really dig into some high level papers to see how this is done with practical performance, but clearly its possible since we have simulations of things as big as galaxies.

2 Likes

If you want to start with some problems that are well-studied for you to compare to: semiconductors experience many quantum effects which you can identify the absence of in a simulation. A PN junction experiences a lot of these effects based on its shape, LED’s only work when the model is quantum.

1 Like