Physics Stack Exchange is a question and answer site for active researchers, academics and students of physics. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a complete physics simulator that I can use to do general simulations for learning purposes? For example:

  1. Create a sandbox.
  2. Fill with a gas.
  3. Load a 3d solid model like this (but 3d).
  4. Fill it with a dense liquid.
  5. Load gravity.
  6. Watch, measure and understand how a barymeter works.

It doesn't need to be precise, just usable, so I guess it is not impossible. The point would be to simulate and visualize any kind of exercise you would find in your physics book. It would be the mother of the learning tools. If it doesn't exist, is anybody interested in programming it?

share|cite|improve this question
Best learning experience would be to build the model as a demonstration. I always liked the demos during lectures, this is more fun than some kind of game. Also, 3D does most often not add to the learning experience. – Bernhard Apr 12 '12 at 21:08
up vote 5 down vote accepted

Is there a complete physics simulator that I can use to do general simulations for learning purposes?

Any Turing complete programming language. Some assembly required. We often say that all models are wrong, so whatever problem you desire to simulate is working on some level of abstraction of more fundamental physical laws. These are generally problem-specific and why you should not expect a "general" physics simulator to answer your question (at least not in 2012). Even if you had perfectly correct governing equations, when you perform numerical simulation inadequacies are introduced that range from a loss of accuracy to completely changing the system dynamics.

My simple suggestion is to browse some library of physics codes. It sounds like you want something learning-oriented, fairly open in nature, easy to use, and powerful enough to do full fluid mechanics simulation. These software requirement are almost laughably daunting. For the record, relaxing the accuracy requirement for a computational fluid dynamics simulation does not make it easy.

Here is an ongoing effort that I strongly support, Open Source Physics:

You should browse through their libraries to find what comes closest to your requirements. Hypothetically, there is nothing keeping one from using their format (with Java) to write a full 3D simulation, but I must return to my point that you have completely underestimated the challenge of that task. Here are some results of the fluid mechanics section of their library:

I suspect you will find that unsatisfactory for your purposes. Here is a specific applet that does a basic Molecular Dynamics (MD) simulation for a gas in 2D:

I think it's a fantastic program, but the properties of the simulated fluid do not match what you want. It would be possible for you to rewrite their code, expanding into 3D and changing the particle interaction rules to fully answer the question at hand. It would take a lot of work, but if you do so, by all means, please submit your code and post a link.

share|cite|improve this answer
Insightful. A year later... – Dokkat Sep 18 '13 at 6:17

The closest program to the description is Phun:

Download it, it's a lot of fun.

Oh, I see, you want 3D immediately. Ambitious enough so that I won't erase my answer.

Update, May 2012. You may try to download trial of Wolfram System Modeler,

share|cite|improve this answer
There is a successor to Phun, called Algodoo in order to avoid parents googling it "accidentally" finding ... different things – Tobias Kienzler Oct 22 '12 at 12:36

As Tobias Kienzler pointed out, Algodoo is a good general-purpose physics 2D simulator. It supersedes Phun, which was mentioned by Luboš Motl in his answer.

share|cite|improve this answer

If you're doing this for demonstrative purposes, an actual 3d design program like Blender would be sufficient.

share|cite|improve this answer
But how can I use it to simulate gases, electrodynamics, etc? – Dokkat Apr 12 '12 at 19:45
@Dokkat you'll have to learn how to use the program. Check youtube for examples of blender physics. – thomasrive Apr 14 '12 at 15:07

openmodelica (google images first to get a grasp) is the best one that I found.


find elmer, mason, breve, etc.. in PSE-modeling and simulation

Those packages are not '3d-toys' , they allow the simulation with complex constraints.

share|cite|improve this answer

Is there a complete physics simulator that I can use to do general simulations for learning purposes?

Yes, it is called "reality".

share|cite|improve this answer
This is the best and only possible answer. – Kevin H. Lin Sep 22 '15 at 22:55

I believe this is what you are looking for functional and very easy to minipulate

share|cite|improve this answer
Looks nice, but I don't think it simulates anything but gravity – Tobias Kienzler Oct 22 '12 at 12:37

protected by Qmechanic May 7 '13 at 20:56

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.