GithubHelp home page GithubHelp logo

derek-wangpch / pbsproject Goto Github PK

View Code? Open in Web Editor NEW

This project forked from westlicht/pbsproject

0.0 2.0 0.0 0 B

SPH Fluid Simulation - Semester Project for Physically Based Simulation Class 2015 ETHZ

License: GNU General Public License v3.0

CMake 1.83% C++ 88.25% C 9.46% Shell 0.16% Python 0.30%

pbsproject's Introduction

SPH Fluid Simulation

Introduction

This code was written for the semester project of the Physically Based Simulation course in 2015 at ETHZ. The goal was to implement a basic SPH fluid simulator in C++11. Ideas for the implementation are taken from the following papers:

Features

The following features have been implemented:

  • Interactive GUI with basic OpenGL visualization
  • JSON based scene description
  • Wavefront OBJ support
  • Index-sorted uniform grid for neighbour search
  • WCSPH [1] and PCISPH [2] solvers
  • PCISPH with adaptive time-stepping [3]
  • Boundaries using boundary particles [3], [4]
    • Create boundary particles for boxes, spheres and arbitrary meshes
  • Surface tension forces [5]
  • Fluid mesh generation using marching cubes
    • Isotropic kernel
    • Anisotropic kernel (only works partially yet) [6]
  • Cache system to cache particles and meshes
  • Render application using either OpenGL visualization or SmallLuxGPU4

Results

Tsunami Demo

a few other videos are here:

Installation

The code was tested only on OSX and Linux, but should be easy to get to work on Windows as well. To compile the project on OSX/Linux use the following procedure:

git clone --recursive https://github.com/westlicht/pbsproject.git
cd pbsproject
mkdir build
cd build
cmake ..
make -j8

Now you can start the viewer using:

./viewer ../scenes/bowl.json

Third Party Code

Part of the framework was derived from the Nori codebase written by Wenzel Jakob. In addition, the following libraries have been used:

pbsproject's People

Contributors

westlicht avatar

Watchers

James Cloos avatar DW 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.