All Projects → topaz1008 → canvas-fluid-solver

topaz1008 / canvas-fluid-solver

Licence: MIT license
Real-time fluid simulation in Javascript.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to canvas-fluid-solver

Fluid Simulation
Self advection, external force and pressure solve to a velocity field represented by a MaC grid.
Stars: ✭ 107 (+137.78%)
Mutual labels:  fluid-solver, fluid-dynamics, fluid-simulation
SNaC
A multi-block solver for massively parallel direct numerical simulations (DNS) of fluid flows
Stars: ✭ 26 (-42.22%)
Mutual labels:  fluid-dynamics, fluid-simulation
splashsurf
Surface reconstruction library and CLI for particle data from SPH simulations, written in Rust.
Stars: ✭ 18 (-60%)
Mutual labels:  fluid-dynamics, fluid-simulation
CaNS
A code for fast, massively-parallel direct numerical simulations (DNS) of canonical flows
Stars: ✭ 144 (+220%)
Mutual labels:  fluid-dynamics, fluid-simulation
navier-stokes-webgl
Stable fluid simulation on GPU using WebGL.
Stars: ✭ 27 (-40%)
Mutual labels:  fluid-dynamics, fluid-simulation
stable-fluids
A minimal Stable Fluids inspired fluid solver with Python and NumPy.
Stars: ✭ 148 (+228.89%)
Mutual labels:  fluid-dynamics, fluid-simulation
jflowsim
Highly interactive, thread-parallel Lattice Boltzmann CFD solver
Stars: ✭ 18 (-60%)
Mutual labels:  fluid-solver, fluid-simulation
unstructured-finite-volume
Unstructured Finite Volume Solver for Partial Differential Equations
Stars: ✭ 26 (-42.22%)
Mutual labels:  fluid-dynamics, fluid-simulation
react-fluid-animation
Fluid media animation for React powered by WebGL.
Stars: ✭ 57 (+26.67%)
Mutual labels:  fluid, fluid-simulation
euler-fluid-cpp
Euler fluid simulated with CPP and SFML
Stars: ✭ 50 (+11.11%)
Mutual labels:  fluid, fluid-dynamics
Blender Flip Fluids
FLIP Fluids is a powerful liquid simulation plugin that gives you the ability to create high quality fluid effects all within Blender, the free and open source 3D creation suite.
Stars: ✭ 983 (+2084.44%)
Mutual labels:  fluid, fluid-simulation
shallow-water
Python model solving the shallow water equations (linear momentum, nonlinear continuity)
Stars: ✭ 78 (+73.33%)
Mutual labels:  fluid-dynamics, fluid-simulation
UnsteadyFlowSolvers.jl
Solvers for problems involving unsteady fluid flow
Stars: ✭ 18 (-60%)
Mutual labels:  fluid-dynamics, fluid-simulation
CFD
Basic Computational Fluid Dynamics (CFD) schemes implemented in FORTRAN using Finite-Volume and Finite-Difference Methods. Sample simulations and figures are provided.
Stars: ✭ 89 (+97.78%)
Mutual labels:  fluid-dynamics, fluid-simulation
Shizuku
Real time simulation and rendering of free surface fluid
Stars: ✭ 22 (-51.11%)
Mutual labels:  fluid-dynamics, fluid-simulation
phantom
Phantom Smoothed Particle Hydrodynamics and Magnetohydrodynamics code
Stars: ✭ 52 (+15.56%)
Mutual labels:  fluid-solver, fluid-dynamics
Latticeboltzmann
A 2D Lattice Boltzmann program
Stars: ✭ 34 (-24.44%)
Mutual labels:  physics, fluid-simulation
Su2
SU2: An Open-Source Suite for Multiphysics Simulation and Design
Stars: ✭ 731 (+1524.44%)
Mutual labels:  physics, fluid
Fluid2d
A versatile Python-Fortran CFD code that solves a large class of 2D flows
Stars: ✭ 49 (+8.89%)
Mutual labels:  fluid-dynamics, fluid-simulation
cplot
Function plotter
Stars: ✭ 27 (-40%)
Mutual labels:  physics

HTML5 Canvas Fluid Solver

A Simple fluid solver implementation in javascript.

A live demo can be found HERE.

The demo uses lil-gui for the GUI.

Simulates the Navier–Stokes equations for incompressible fluids.

Largely based on Jos Stam's paper Real-Time Fluid Dynamics for Games.

The density field is rendered on an off-screen bitmap and blit'ed to the canvas for performance reasons.

The code is commented as best I could where ever I felt it was necessary.

The best reference is the original paper which is still online and contains a very clear explanation of the solver and methods it uses. It also contains a complete C implementation of the solver.

If the original paper ever goes offline I have a copy of it here.

Other implementations I've looked at while making this. (these links are very old and are dead and/or insecure so proceed at you own risk)

Running

Just open index.html in your browser or see the live demo HERE.

Wishlist

  • Add internal grid boundaries.
  • Maybe think about considering thinking about a 3D implementation ;)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].