Skip to content

matthewa313/2D-CFD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

2D CFD

An open-source, two-dimensional computational fluid dynamics solver using the lattice-Boltzman methods.

Getting Started

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.

Prerequisites

Java App

  • Java 1.8

Processing App

Python App

Then, install the following modules via pip3 install

  • numpy, tested with 1.16.2
  • time, tested with 1.0.0
  • matplotlib, tested with 3.0.3

Webpage App

  • HTML with CSS and Javascript

Installing

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

Contributing

Raise any issues or make any pull and push requests as you see fit.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Matthew Anderson - Author of these versions - matthewa313

Inspired by physics.weber.edu/Schroeder/fluids.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

2-dimensional computational fluid dynamics (CFD) solver via lattice-Boltzmann mechanics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors