Skip to content

Simulate planetary collisions using smoothed particle hydrodynamics in 3D. Data is not provided.

Notifications You must be signed in to change notification settings

pablonavarrob/planetary-collision-3D-SPH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Planetary Collision SPH 3D Simulation

Due to the chaotic nature of the differential equations that govern hydrodynamic interactions, it is some- times not possible to derive an analytic solution for them. These equations are very sensitive to the input parameters and will yield to totally different results even if the initial conditions are only changed by a small amount. It is for that, that scientists rely on numerical simulations to explore the possible outcomes from these equations for a given set of initial conditions.

There are two main types of frameworks to do the aforementioned simulations on: the Eulerian and the Lagrangian. Although both of them yield to the same (or very similar) results, they have several fundamental differences: while the Lagrangian approach follows every particle as they move along the simulation, the Eulerian approach focuses on observing only a specific patch of the simulation and the behavior of the particles that cross through it. Furthermore, Eulerian simulations are typically based on a grid that is fixed in space and time, which makes it complicated to apply it in certain situations. In this work, we will focus on a widely known method for a mesh-free Lagrangian method called smoothed particles hydrodynamics or SPH.

In this implementation I used as much masking/indexing as possible to overcome the slowness of Python on these scenarios. While the improvement is of several orders of magnitude, the results shown below still took one day on an i5 16Gb RAM machine to compute.

Results from the simulation

About

Simulate planetary collisions using smoothed particle hydrodynamics in 3D. Data is not provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages