Git Product home page Git Product logo

collisions's Introduction

Collisions - A 1D particle collision suite
Copyright (c) 2009, David Newgas <[email protected]>

Collisions consists of several programs for simulating 1D elastic particle
collisions.

The programs must be compiled, if you are compiling from git run
./autogen.sh && make
if you are compiling from a distributed tarball run
./configure && make

the main program is `collisions` it takes as input a set of bodies and outputs
the state of every particle at every collision.
It expects input in the format:
inverse-mass radius position velocity
and outputs in the format:
time particle-1-x particle-1-y ...

the program `interpolate` is not very useful, but will take the output of
collisions are recast it in the same format, but at regular intervals.

the program `gas` generates a group of particles.  It currently gives them all
the same speed, in random directions.  It expects on the command line, first the
number of particles, then their mass and radius, then the start and end range of
positions they can be in, and then their speed.

the program `plot` is an example gnuplot script.  It will plot 12 particles in
the file /tmp/bar.

the program `RUNME` is an overall example session.  It creates a random 10
particle gas between two walls, and simulates them and plots them over 10
seconds.  RUNME expects to be run from the src directory of the collision
sources.

collisions's People

Contributors

davidn avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  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.