Giter Site home page Giter Site logo

shaoyaoqian / dcgrid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wouterraateland/dcgrid

0.0 0.0 0.0 133.41 MB

DCGrid: An Adaptive Grid Structure for Memory-Constrained Fluid Simulation on the GPU

License: GNU General Public License v3.0

JavaScript 1.01% C++ 30.86% C 18.57% Cuda 48.44% CMake 0.96% GLSL 0.16%

dcgrid's Introduction

DCGrid

Please note: The project won't run out of the box. For managing the window, UI, user input, etc. A proprietary library was used, which I can't include here. Only main.cpp and simulation.* are affected. I'd be happy to accept a PR that allows this project to run without the library. If you're interested in helping out, feel free to reach out for any questions.

Prerequisites

  • Visual Studio 2019
  • CUDA v11.1 or later
  • VCPKG
  • C++ boost

Installation

  1. Clone the repository
  2. Open the repository in Visual Studio
  3. Run the project in Visual Studio (Preferably in "Release" or "Release with debug symbols" mode)

Controls

Key Description
N Switch between uniform and adaptive simulation
H Reset simulation
Space Toggle Pause / Running
T Toggle terrain debugging
1 Set render mode: normal
2 Set render mode: pressure
3 Set render mode: temperature
4 Set render mode: resolution
5 Set render mode: vapor
6 Set render mode: velocity
W S A D Move camera
Mousewheel Move camera back and forth

Explore the UI for further interactions.

Related paper

dcgrid's People

Contributors

wouterraateland avatar

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.