Skip to content

Projekt programu symulującego zjawisko fizyczne znane jako Ruchy Browna, napisany w języku JavaScript.

Notifications You must be signed in to change notification settings

Mathias007/brownian-motion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Brownian Motion

Overview

This project is a simulation of Brownian motion, also known as random walk, using the Chart.js library. The simulation allows the user to adjust parameters such as the number of iterations, the time step, and the dimensionality of the system. The resulting motion of the particles is visualized in a scatter plot. Additionally, the user can export the data to an Excel file using the xlsx library and save the plot as an image using the FileSaver library.

Functionalities

  • Chart.js: Used for visualizing the Brownian motion in a scatter plot.
  • xlsx: Allows the user to export the data to an Excel file.
  • FileSaver: Allows the user to save the plot as an image.

Preview

You can see the live preview of the project here: https://mathias007.github.io/brownian-motion/

Getting Started

To run the simulation, simply open the index.html file in your web browser. The simulation will start automatically. You can also change the parameters of the simulation, such as the number of particles and the diffusion coefficient, by modifying the variables in the script.js file.

Results and Analysis

The simulation shows the random motion of particles in a fluid over time. The results can be exported to a XLXS file for further analysis. Additionally, we calculated the mean square displacement and its dependence on time, as well as the diffusion coefficient. The results are consistent with theoretical predictions and experimental data.

Conclusion

The project successfully simulates the Brownian motion of particles in a fluid using computer simulation. The results agree with theoretical predictions and experimental data, and the code can be easily modified to explore different scenarios. This project can be a useful tool for studying the behavior of small particles in a fluid, and for understanding the fundamental principles of diffusion and random motion.

About

Projekt programu symulującego zjawisko fizyczne znane jako Ruchy Browna, napisany w języku JavaScript.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published