Git Product home page Git Product logo

fluid's Introduction

Inkling

A real time fluid simulation based on the Navier-Stokes equations and computed in OpenGL fragment shaders.

Android version

WebGL version

In a nutshell, the governing Navier-Stokes equations for incompressible fluid (i.e. momentum and mass conservation equations) are discretised via finite differences, advection is solved by a semi-Lagrangian method (unconditionally stable) and a Jacobi relaxation metod is being used for the Poisson-pressure equation, the resulting pressure gradient is substracted in order to get a divergence-free velocity field for a next timestep. The maths and some code of the fragment shaders are described in Nvidia's GPU Gems

The framework for the fluid simulation is based on this project.

Floating point scalar and vector fields are packed (lossy) into unsigned byte textures in order to get rid of GL_OES_texture_float depenency, the extention is not supported by some GPUs in Android devices.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.