Code Monkey home page Code Monkey logo

particles-universe's Introduction

Universe Particle Simulation

This is a particle simulation project based on the work of Thomas Schmickl and Martin Stefanec of University of Graz, Austria. It simulates the movement of particles in a universe and visualizes the results using Matplotlib.


Installation

This project uses Poetry to manage dependencies. If you don't have Poetry installed, you can use pip for installation.

Method 1: Using poetry:

If you have Poetry installed, you can install the project dependencies by running the following command in the project directory:

poetry shell
poetry install

This will create a virtual environment and install all the required packages.

Method 2: Using pip:

If you don't have Poetry installed, you can use pip to install the dependencies. Run the following command in the project directory:

pip install -r requirements.txt

Usage

To run the simulation, you can use the following command:

python main.py

This will start the simulation and display the results using Matplotlib.

One can experiment with the simulation by changing the initial conditions in the main.py file. The initial conditions are defined in the initial_conditions.py file.


Examples

Some interesting initial conditions have been provided in the interesting_conds.py file, which can be called by:

python interesting_conds.py <initial_condition_name>
Initial Condition Name GIF
galaxy
onion
stable_ring_collapse
shedding_ring
petri_dish
pulse_ring
swarm

License

This project is licensed under the MIT License - see the LICENSE file for details.

particles-universe's People

Contributors

vitaminb16 avatar

Watchers

 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.