10
$\begingroup$

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?

$\endgroup$
1
  • 1
    $\begingroup$ 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. $\endgroup$
    – Bernhard
    Apr 12, 2012 at 21:08

6 Answers 6

5
$\begingroup$

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:

http://www.compadre.org/osp/

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:

http://www.compadre.org/osp/search/search.cfm?gs=225&b=1&qc=Compiled%20Simulation

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:

http://www.compadre.org/osp/items/detail.cfm?ID=8624

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.

$\endgroup$
1
  • $\begingroup$ Insightful. A year later... $\endgroup$
    – MaiaVictor
    Sep 18, 2013 at 6:17
5
$\begingroup$

The closest program to the description is Phun:

http://phun.en.softonic.com/

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,

http://www.wolfram.com/system-modeler/

$\endgroup$
1
  • 1
    $\begingroup$ There is a successor to Phun, called Algodoo in order to avoid parents googling it "accidentally" finding ... different things $\endgroup$ Oct 22, 2012 at 12:36
1
$\begingroup$

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.

$\endgroup$
0
$\begingroup$

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

$\endgroup$
2
  • $\begingroup$ But how can I use it to simulate gases, electrodynamics, etc? $\endgroup$
    – MaiaVictor
    Apr 12, 2012 at 19:45
  • $\begingroup$ @Dokkat you'll have to learn how to use the program. Check youtube for examples of blender physics. $\endgroup$
    – thomasrive
    Apr 14, 2012 at 15:07
0
$\begingroup$

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

enthought

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

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

$\endgroup$
0
$\begingroup$

I believe this is what you are looking for functional and very easy to minipulate http://universesandbox.com/

$\endgroup$
1
  • $\begingroup$ Looks nice, but I don't think it simulates anything but gravity $\endgroup$ Oct 22, 2012 at 12:37

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