Jump to content

2D Accretion Simulation


quietsamurai98

Recommended Posts

I've been making a simulation of a protoplanetary disk for a computer science course, and I thought that you guys would appreciate it! I wrote all of the code myself, and it is all publicly available on GitHub. You'll need to have some kind of java IDE to run the simulation from the source code, but all the links are to .jar and .bat files that anyone with java installed should be able to run them.

This version is an older, more user friendly version. It has a live view of the simulation, so you can watch as it unfolds.

This is the most up to date version. It outputs each simulation frame as a .png, and once enough frames are generated, they can be stictched into an AVI video using an external program, like VirtualDub. This means you can have it simulate many particles and watch the output at a steady frame rate.

I have uploaded a few of these AVIs to my youtube channel, and I put them all in a playlist.


This video is most interesting video of a simulation so far, in my opinion. It is one of the few simulations that resulted in a relatively stable system with recognizable planets that have significant mass.


This video has the highest definition and highest particle count so far out of all the simulation videos, however I didn't give the particles a large enough initial random velocity, so they all collapsed into one huge star.

 

I hope a few people find this interesting!

Edited by quietsamurai98
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...