Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lyd405121/wcsph
using taichi to create sph simulation
https://github.com/lyd405121/wcsph
Last synced: 8 days ago
JSON representation
using taichi to create sph simulation
- Host: GitHub
- URL: https://github.com/lyd405121/wcsph
- Owner: lyd405121
- Created: 2020-08-17T02:40:50.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-07-22T02:30:58.000Z (over 2 years ago)
- Last Synced: 2024-08-02T11:23:35.694Z (3 months ago)
- Language: Python
- Size: 38.6 MB
- Stars: 41
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-taichi - Liquid simulation - Using Taichi to create SPH simulation. (Applications / **Simulation**)
- awesome-taichi - Liquid simulation - Using Taichi to create SPH simulation. (**Simulation**)
README
# Weakly compressed liqiud simulation
- The code is mainly code transplanted from [SPlisHSPlasH](https://github.com/InteractiveComputerGraphics/SPlisHSPlasH)
- The code use [Taichi](https://github.com/taichi-dev/taichi) programming language
---
## Current implement algorithm
* [SESPH]
* [PCISPH]
* [IISPH]
* [DFSPH]
---## How to run
* First config your anaconda workspace, and open the anaconda prompt
* Second you need install [taichi](https://github.com/taichi-dev/taichi) language, **pip install taichi**
* Last you type **ti dfsph.py**, that's all
---## Some image produced by this project
### Possion disk sample(full parallel) for boundry handling
![image](image/boundtry.gif)
---### Implicit viscosity solver
---
### Use precondition cg to solve viscosity:
---
### Surface tension (without & with):
![image](image/no_tension.gif) ![image](image/tension.gif)
---
### anistropic mesh restruction :
- marching cube
- using anistropic kernel to build the volume field
- render image
---### Other algorithm:
- hash grid
- cfl time step
---
# Referrence- M Weiler 2018: A physically consistent implicit viscosity solver for SPH fluids
- Nadir Akinci 2013: Versatile surface tension and adhesion for SPH fluids
- JIHUN YU 2013: Reconstructing Surfaces of Particle-Based Fluids. Using Anisotropic Kernels.