Skip to content

Rabbit-Hu/sapiensph

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAPIEN SPH

example

A simple PCISPH implementation using NVIDIA Warp and SAPIEN. This is my homework project for the course CSE 291 (SP 2024 C00) Physics Simulation by Prof. Albert Chern at UCSD. This implementation is very simple and was done in less than a day, including reading the paper and coding.

Installation

Prerequisites

  • Python 3.8 or later
  • CUDA 12 or later

Step 1: Install SAPIEN 3

Use pip to install the latest SAPIEN 3 wheel from SAPIEN Nightly Release. Look for your own python version.

The installation command should look like this:

pip install https://github.com/haosulab/SAPIEN/releases/download/nightly/sapien-3.0.0.dev{SOME_DATE}-cp{PYTHON_VERSION}-cp3{PYTHON_VERSION}-manylinux2014_x86_64.whl

See the SAPIEN repo for reference.

Step 2: Install sapiensph

Clone this repo and install it using pip:

git clone [email protected]:Rabbit-Hu/sapiensph.git
cd sapiensph
pip install .

Usage

See the examples/example.py for a simple example.

python examples/example.py

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages