An open-source, two-dimensional computational fluid dynamics solver using the lattice-Boltzman methods.
A copy of a similar application is written in four different apps: a Java app, a Processing app, a Python app, and a webpage app. To get started with any of these, click on the respective folder and make sure that you have the following prerequisites installed.
Java App
- Java 1.8
Processing App
Python App
Then, install the following modules via pip3 install
numpy, tested with 1.16.2time, tested with 1.0.0matplotlib, tested with 3.0.3
Webpage App
HTMLwithCSSandJavascript
Clone or download this Git repository to your computer. From there, use an IDE or terminal to run the program:
Java App
The Java version can be run as a .jar file or from its source in your favorite IDE, such as Eclipse. To run the .jar file:
cd [Insert path to folder where .jar was saved]
java -jar java_2dcfd.jar
Processing App
Launch the Processing IDE by opening the main.pde file from your computer.
Python App
python3 [file path]/latticeBoltzmannDemo.py
Webpage App
Runnable from Fluid Dynamics Simulation.html
Raise any issues or make any pull and push requests as you see fit.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Matthew Anderson - Author of these versions - matthewa313
Inspired by physics.weber.edu/Schroeder/fluids.
This project is licensed under the MIT License - see the LICENSE.md file for details