Skip to content

ColinKinloch/FluidApp

Repository files navigation

Computational Simulation of Fluid Dynamics - Artifact

An implementation of Lattice Boltzmann method in OpenCL.

User Guide

Click and drag on the screen to draw obstacles to flow.

Plus and minus keyboard buttons cycle through demo obstacles.

Settings such as resolution and flow velocity can be edited in "./data/settings.json", an explanation of each setting is listed under "Settings".

Settings

  • width: The width of the simulation. Integer
  • height: The height of the simulation. Integer
  • fps: Framerate of simulation. Integer
  • vx: Velocity of horizontal flow. Floating point
  • vy: Velocity of vertical flow. Floating point
  • rho: Input density. Floating point
  • tau: Relaxation time of the fluid. Floating point
  • wrap.horizontal: Whether the display wraps horizontally. Boolean
  • wrap.vertical: Whether the display wraps vertical. Boolean
  • OpenCL.platform: Index of platform run simulation on. Integer
  • OpenCL.device: Index of device to run simulation on. Integer

Building

CMake is used to produce system specific build files, in linux this will produce a makefile.

The artifact was developed on Linux and while all dependencies are cross platform there may be compatibility issues with other operating systems.

Dependency list

Colin Kinloch - 1026970

About

An implementation of Lattice Boltzmann method in OpenCL.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published