GithubHelp home page GithubHelp logo

openlearneruser / xfluid Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raymondmcguire/particle-based-fluid

0.0 0.0 0.0 166.77 MB

流体模拟学习代码

Home Page: https://raymondmcguire.github.io/Particle-Based-Fluid/

C++ 51.99% C 3.72% Cuda 38.53% CMake 0.87% GLSL 4.87% Batchfile 0.02%

xfluid's Introduction

Particle-Based Fluid

WindowsCUDA

This project implemented several SPH-related papers using CUDA, including Weakly Compressible SPH (SCA2007), Position-based Fluid (SIGGRAPH2013), Implicit Incompressible SPH (TVCG2014), Divergence-free SPH (SCA2015), Volume Fraction-based Multiple-fluid (SIGGRAPH2014) and Helmholtz Free Energy based Multiple-fluid (SIGGRAPH2015).

Environment

  • C++ & CUDA11.6
  • Install CUDA and Cmake first

Setup

Command Line

cd /to/your/project/path
mkdir build
cd build
cmake .. -G"Visual Studio 17 2022" -A x64

Scripts

For Windows

  • cd to ./scripts folder
  • choose your visual studio version(vs15/vs17/vs19/vs22)
  • run the bat file

Gallery

Example GIF
SPH SPH
WCSPH WCSPH
IISPH WCSPH
DFSPH WCSPH
Volume-Fraction Based Multiple-Fluid : Non-Miscible MFNM
Volume-Fraction Based Multiple-Fluid : Miscible MFM
Helmholtz Free Energy Based Multiple-Fluid : Miscible MFM

Papers implemented

  • Müller, Matthias, David Charypar, and Markus H. Gross. "Particle-based fluid simulation for interactive applications." Symposium on Computer animation. 2003.
  • Becker, Markus, and Matthias Teschner. "Weakly compressible SPH for free surface flows." Proceedings of the 2007 ACM SIGGRAPH/Eurographics symposium on Computer animation. 2007.
  • Akinci, Nadir, et al. "Versatile rigid-fluid coupling for incompressible SPH." ACM Transactions on Graphics (TOG) 31.4 (2012): 1-8.
  • Ihmsen, M., Cornelis, J., Solenthaler, B., Horvath, C., & Teschner, M. (2013). Implicit incompressible SPH. IEEE transactions on visualization and computer graphics, 20(3), 426-435.
  • Bender, J., & Koschier, D. (2015, August). Divergence-free smoothed particle hydrodynamics. In Proceedings of the 14th ACM SIGGRAPH/Eurographics symposium on computer animation (pp. 147-155).
  • Ren, B., Li, C., Yan, X., Lin, M. C., Bonet, J., & Hu, S. M. (2014). Multiple-fluid SPH simulation using a mixture model. ACM Transactions on Graphics (TOG), 33(5), 1-11.
  • Yang, T., Chang, J., Ren, B., Lin, M. C., Zhang, J. J., & Hu, S. M. (2015). Fast multiple-fluid simulation using Helmholtz free energy. ACM Transactions on Graphics (TOG), 34(6), 1-11.

xfluid's People

Contributors

raymondmcguire avatar raymondmg avatar raymondmgwx 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.