All Projects → piellardj → navier-stokes-webgl

piellardj / navier-stokes-webgl

Licence: other
Stable fluid simulation on GPU using WebGL.

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to navier-stokes-webgl

Fluid Simulation
Self advection, external force and pressure solve to a velocity field represented by a MaC grid.
Stars: ✭ 107 (+296.3%)
Mutual labels:  navier-stokes, fluid-dynamics, fluid-simulation, fluid-grid
SNaC
A multi-block solver for massively parallel direct numerical simulations (DNS) of fluid flows
Stars: ✭ 26 (-3.7%)
Mutual labels:  fluid-dynamics, fluid-simulation
splashsurf
Surface reconstruction library and CLI for particle data from SPH simulations, written in Rust.
Stars: ✭ 18 (-33.33%)
Mutual labels:  fluid-dynamics, fluid-simulation
shallow-water
Python model solving the shallow water equations (linear momentum, nonlinear continuity)
Stars: ✭ 78 (+188.89%)
Mutual labels:  fluid-dynamics, fluid-simulation
UnsteadyFlowSolvers.jl
Solvers for problems involving unsteady fluid flow
Stars: ✭ 18 (-33.33%)
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 (+229.63%)
Mutual labels:  fluid-dynamics, fluid-simulation
FluidX12
Authors' implementation of our SIGGRAPH Asia 2021 Technical Communications (Viewport-Resolution Independent Anti-Aliased Ray Marching on Interior Faces in Cube-Map Space) demo I. Fast volume rendering using our novel ray marching with smoke simulations by Eulerian grid method for solving Navier-Stokes equation.
Stars: ✭ 26 (-3.7%)
Mutual labels:  navier-stokes, fluid-simulation
stable-fluids
A minimal Stable Fluids inspired fluid solver with Python and NumPy.
Stars: ✭ 148 (+448.15%)
Mutual labels:  fluid-dynamics, fluid-simulation
canvas-fluid-solver
Real-time fluid simulation in Javascript.
Stars: ✭ 45 (+66.67%)
Mutual labels:  fluid-dynamics, fluid-simulation
CaNS
A code for fast, massively-parallel direct numerical simulations (DNS) of canonical flows
Stars: ✭ 144 (+433.33%)
Mutual labels:  fluid-dynamics, fluid-simulation
WABBIT
Wavelet Adaptive Block-Based solver for Interactions with Turbulence
Stars: ✭ 25 (-7.41%)
Mutual labels:  navier-stokes, fluid-dynamics
Shizuku
Real time simulation and rendering of free surface fluid
Stars: ✭ 22 (-18.52%)
Mutual labels:  fluid-dynamics, fluid-simulation
Fluid2d
A versatile Python-Fortran CFD code that solves a large class of 2D flows
Stars: ✭ 49 (+81.48%)
Mutual labels:  fluid-dynamics, fluid-simulation
unstructured-finite-volume
Unstructured Finite Volume Solver for Partial Differential Equations
Stars: ✭ 26 (-3.7%)
Mutual labels:  fluid-dynamics, fluid-simulation
Natrix
Fast fluid simulation in Python 🐍
Stars: ✭ 25 (-7.41%)
Mutual labels:  navier-stokes, fluid-simulation
sph vulkan
SPH simulation in Vulkan compute shader.
Stars: ✭ 29 (+7.41%)
Mutual labels:  fluid-simulation
OpenRefine-ecology-lesson
Data Cleaning with OpenRefine for Ecologists
Stars: ✭ 20 (-25.93%)
Mutual labels:  stable
maelstrom
Numerical simulation of magnetohydrodynamics.
Stars: ✭ 28 (+3.7%)
Mutual labels:  navier-stokes
ElegantRL
Scalable and Elastic Deep Reinforcement Learning Using PyTorch. Please star. 🔥
Stars: ✭ 2,074 (+7581.48%)
Mutual labels:  stable
mlflip
A quick implementation of MLFLIP
Stars: ✭ 46 (+70.37%)
Mutual labels:  fluid-simulation

navier-stokes-webgl

Stable fluid simulation on GPU using WebGL.

Live version here.

This is an implementation of the Stable Fluid described by Jos Stam.

Simulation

The simulation is implemented on GPU with the method provided in GPU Gems. The diffusion term was dropped since it didn't have much visual influence.

Data storage

This simulation can run in two modes for storing the velocities:

  • velocity stored in float textures: each component (x, y) is stored as a 32bit float. To do so the following extensions must be available: OES_texture_float, WEBGL_color_buffer_float, OES_texture_float_linear.
  • velocity stored in normal textures with four 8bit channels. In this mode each component is stored as a 16bit fixed point value, encoded in two 8bit texture channels. This mode provides less precision for the computing, and you can see artifacts if you push the display color intensity to the maximum.
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].