Skip to content

This one is different though. It creates and handles the system of molecules that interact with Lennard-Jones potential. Display was made with SDL2.

Notifications You must be signed in to change notification settings

Kraysent/Yet-Another-NBody-model

Repository files navigation

Molecular system model

Decription

This is just cool model of molecules that interact with Lennard-Jones potential. There are a bunch of particles and interaction is counted only from particles in the neighbouring cells.

Made it as a programming project for the university in May of 2020.

Inspired by this (much more cool) project. Though it does not share any code with it.

How to run

Install sdl2, sdl2_ttf and sdl2_image libraries. On MacOS it is as easy as

brew install sdl2 sdl2_image sdl2_ttf

Then just type make and launch the result executable.

To interact with particles use buttons in the right top of the window. You can remove or add particles, heat or cool them, pause and resume and enable or disable grid (it is only visual). Note that sometimes there might be self-heating gas or similar non-physical things. Remember, this is the simplest realization of this model.

To clean build files

make clean

About

This one is different though. It creates and handles the system of molecules that interact with Lennard-Jones potential. Display was made with SDL2.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published