Git Product home page Git Product logo

plummer_cuda's Introduction

Plummer model simulation

This project uses plummer model to simulate star clusters. This model describes a star cluster consists of 10240 stars.

Theoretical part

  1. The inital positions and velocities of all stars is given by Plummer 3D density profile.
  2. Leapfrog integration is used to integrate this hamiltonian system.

Programming part

This project is written in C. Leapfrog integration part is sped up with CUDA.

Simulation result

  1. stable star clusters. If the velocity distribution is set by Plummer model, the star clusters will maintain in a stable status.
  2. unstable star clusters. If the velocity distribution is set randomly, the star clusters will spread out after a while.

Quick Start

  1. clone this repository
git clone https://github.com/CLaigit/plummer_cuda
  1. change the compiler directory in Makefile

  2. compile code compile both unstable cluster and stable cluster

make
  1. run run the stable cluster
./stable.o

run the unstable cluster

./unstable.o

plummer_cuda's People

Contributors

cccclai avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.