Skip to content

BitPusher16/eulerian-fluid-sim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eulerian-fluid-sim

A simple wind tunnel fluid simulator. Reads obstacle shape from raster and computes fluid flow direction.

Project based on Ten Minute Physics video here: https://www.youtube.com/watch?v=iKAVRgIrUOU

alt text

Installing and Running

# Makefile assumes that raylib is installed locally and headers are available in /usr/local/include.
# To build raylib on linux, follow instructions at this page:
# https://github.com/raysan5/raylib/wiki/Working-on-GNU-Linux

sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
cd ~/repos
git clone [email protected]:raysan5/raylib.git
cd raylib
sudo apt install build-essential git
sudo make install

# To build and run:

cd ~/repos
git clone [email protected]:BitPusher16/eulerian-fluid-sim.git
cd eulerian-fluid-sim
make
./bin/sim ./data/simple_wing_160_120.png


# To generate a compile_commands.json file which nvim can read:

bear make

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published