Giter Site home page Giter Site logo

jgbrasier / boltzmann-simulation Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 1.0 1.12 MB

Maxwell-Boltzmann numerical simulation: particle in a box simulation (C/C++) and energy distribution simulation using a simple collision model (Python)

License: MIT License

C++ 15.10% Makefile 0.82% Jupyter Notebook 84.08%
physics boltzmann simulation particle-in-a-box maxwell-boltzmann-distribution boltzmann-simulation particle python3 oop object-oriented-programming energy energy-distribution

boltzmann-simulation's Introduction

Boltzmann simulation

Study of Maxwell-Boltzmann velocity distribution

Particle-in-a-box (PIB) simulation written in C with C++ graphics animator. Uses event-driven programming.

Has thermal gradient and mobile vertical wall.

Project done for my computer programming class at ESPCI Paris under supervision from Prof. Didier Cassereau.

Final grade: A+

To run

Clone repo: $ git clone https://github.com/jgbrasier/boltzmann-simulation

Build main (in repo directory): make ./start

Run start

Outputs

program outputs a distribution.txt histogram of velocities.

Parameters

In main():

  • Np (Number of particles): varies number of particles (currently program does not run with Np > 200)
  • diameter (particle diameter): if increase diameter, reduce Np (ther is no adaptive window scaling, you may encounter a run-time error)

Study of the Boltzmann energy distribution

Jupyter Notebook detailing a simple collision model where only the energy of a particle in considered. At each timestep, particles have a probability p of exchanging their energies.

distribution

boltzmann-simulation's People

Contributors

jgbrasier avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

pablo-mas

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.