Run the ASFLIP demo
masterTo execute the demo, run the pyasflip.py script using Python 3. Ensure Taichi is installed in your environment first.
python pyasflip.pyrepository·master·Indexed 41 days ago
https://github.com/raymondyfei/pyasflipA Python implementation of the ASFLIP advection method for the Material Point Method (MPM), designed to provide easier separation and less dissipation in simulations. Requires Taichi to run.
To execute the demo, run the pyasflip.py script using Python 3. Ensure Taichi is installed in your environment first.
python pyasflip.pyOnce the demo is running, you can interact with the simulation using the following keyboard controls:
R: Reset the simulation.Space: Pause or start the simulation.Left / Right arrow keys: Switch between different advection schemes.The pyasflip demo requires Taichi to run. You can install it using pip in a Python 3 environment.
pip install taichi