Astronomy Stack Exchange is a question and answer site for astronomers and astrophysicists. 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

Are there any simulations that can be obtained that use smooth particle hydrodynamics and can be configured to include different initial conditions? I wish to simulate planetary collisions and their impact. I wish to exactly replicate the following link.

share|improve this question
It would be awesome if you could tell a bit more precisely, what do you really wish for. There are plenty of algorithms, inlcuding SPH and its variations, many codes written and many nice outputs produced, planetary collisions included. – Alexey Bobrick Jan 17 '14 at 18:01
The algorithm that I am looking for should be able to simulate collisions like the following link : – Artemisia Jan 18 '14 at 2:44
I am trying to exactly duplicate the code used for that YouTube link. – Artemisia Jan 18 '14 at 2:45

I would recommend MPA Garching's Gadget code for cosmological simulations of structure formation. It's primarily gravitational, but I do believe you can include gas effects as well:

GADGET computes gravitational forces with a hierarchical tree algorithm (optionally in combination with a particle-mesh scheme for long-range gravitational forces) and represents fluids by means of smoothed particle hydrodynamics (SPH). The code can be used for studies of isolated systems, or for simulations that include the cosmological expansion of space, both with or without periodic boundary conditions. In all these types of simulations, GADGET follows the evolution of a self-gravitating collisionless N-body system, and allows gas dynamics to be optionally included. Both the force computation and the time stepping of GADGET are fully adaptive, with a dynamic range which is, in principle, unlimited.

I don't know if this is what is commonly used for tasks such as yours, but it might be a place to start looking.

share|improve this answer
Thanks :) it is a good headstart. I wish to exactly simulate – Artemisia Jan 18 '14 at 2:46
There many different SPH codes around the astronomy community (I have one myself), but AFAIK none except gadget are publicly available for download (simply because these codes are very specific and easy to break if you don't know what you're doing). The problem with gadget is that it implements an out-of-date SPH algorithm (>10 years old) and was never really meant for planet collisions (I bet you would need a particular equation of state for planet collisions). – Walter Jan 18 '14 at 10:13
Ah yes. I plan to use the ANEOS analytical equations of state. – Artemisia Jan 18 '14 at 10:22
I would like a simulation with a more updated version of the SPH algorithm, no problem if I have to purchase it :) Any suggestions? – Artemisia Jan 18 '14 at 10:23
@Walter: there are many other good publically available SPH codes. Check any recent review on SPH, e.g. Springel, Price or Rosswog. – Alexey Bobrick Jan 19 '14 at 1:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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