<p>I would recommend MPA Garching's <a href="http://www.mpa-garching.mpg.de/gadget/">Gadget</a> code for cosmological simulations of structure formation. It's primarily gravitational, but I do believe you can include gas effects as well:</p>

<blockquote>
  <p>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. </p>
</blockquote>

<p>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.</p>

CC BY-SA 3.0
2014-01-18T02:46:00.690Z
Thanks :) it is a good headstart. I wish to exactly simulate https://www.youtube.com/watch?v=Fwl_JBQtH9o
Artemisia
CC BY-SA 3.0
2014-01-18T10:13:31.513Z
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
CC BY-SA 3.0
2014-01-18T10:22:41.603Z
Ah yes. I plan to use the ANEOS analytical equations of state.
Artemisia
CC BY-SA 3.0
2014-01-18T10:23:00.353Z
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
CC BY-SA 3.0
2014-01-19T01:04:18.767Z
@Walter: there are many other good publically available SPH codes. Check any recent review on SPH, e.g. Springel, Price or Rosswog.
Alexey Bobrick
CC BY-SA 3.0
2014-01-21T10:50:02.130Z
Will definitely have a look. Thanks to all for their comments.
Artemisia
CC BY-SA 3.0
2014-01-17T18:04:20.430Z
2014-01-17T18:04:20.430Z
astromax
<p>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 <em>exactly replicate</em> the following link.</p>

<hr>

<p><a href="https://www.youtube.com/watch?v=Fwl_JBQtH9o">https://www.youtube.com/watch?v=Fwl_JBQtH9o</a></p>

<hr>

CC BY-SA 3.0
2017-05-24T06:22:27.260Z
Could you find Canup's SPH code? I'm a PhD Brazilian student and I'm looking for a code like you.. Thanks =)
Andre Amarante
CC BY-SA 3.0
2017-06-05T23:55:13.760Z
@AndreAmarante, unfortunately, I was unable to find Canup's code. Other  SPH codes did provide a lot of insight into how to figure it out, so I would recommend checking those out. Cheers!
Artemisia
CC BY-SA 3.0
2014-01-17T18:01:25.653Z
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
CC BY-SA 3.0
2014-01-18T02:44:35.917Z
The algorithm that I am looking for should be able to simulate collisions like the following link : https://www.youtube.com/watch?v=Fwl_JBQtH9o
Artemisia
CC BY-SA 3.0
2014-01-18T02:45:07.717Z
I am trying to exactly duplicate the code used for that YouTube link.
Artemisia
<software>
SPH simulations
Artemisia
# SPH simulations

(Asked by: username_0 on 2014-01-17)

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.

---

<https://www.youtube.com/watch?v=Fwl_JBQtH9o>

---

**Tags:** software

> **Comments:**
> **username_2**: 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.  
> **username_0**: The algorithm that I am looking for should be able to simulate collisions like the following link : https://www.youtube.com/watch?v=Fwl_JBQtH9o  
> **username_0**: I am trying to exactly duplicate the code used for that YouTube link.  
> **username_1**: Could you find Canup's SPH code? I'm a PhD Brazilian student and I'm looking for a code like you.. Thanks =)  
> **username_0**: @username_1, unfortunately, I was unable to find Canup's code. Other  SPH codes did provide a lot of insight into how to figure it out, so I would recommend checking those out. Cheers!  

---

## 1 answers

### Answer by username_3 on 2014-01-17. Score: 6

I would recommend MPA Garching's [Gadget](http://www.mpa-garching.mpg.de/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.

> **Comments:**
> **username_0**: Thanks :) it is a good headstart. I wish to exactly simulate https://www.youtube.com/watch?v=Fwl_JBQtH9o  
> **username_4**: 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).  
> **username_0**: Ah yes. I plan to use the ANEOS analytical equations of state.  
> **username_0**: I would like a simulation with a more updated version of the SPH algorithm, no problem if I have to purchase it :) Any suggestions?  
> **username_2**: @username_4: there are many other good publically available SPH codes. Check any recent review on SPH, e.g. Springel, Price or Rosswog.  
> **username_0**: Will definitely have a look. Thanks to all for their comments.  

---

