Skip to content

Commit

Permalink
Ring potential and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Masterchef365 committed Mar 10, 2024
1 parent 1ac0373 commit e55d0f0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
# Particle life And FLIP Fluid simulation
# Particle life And FLIP Fluid simulation, with node graph
This is a combination of a [FLIP fluid solver](https://youtu.be/XmzBREkK8kY), and a [Particle Life](https://youtu.be/p4YirERTVF0) simulation. On each page refresh, fresh rules are chosen for the particle life simulation. **This simulation is interactive, drag the particles around!**

### Try the online version!
https://masterchef365.github.io/pic-fluids/

### Node graph
The node graph portion can be considered to be a type of self-modifying code; changes to the node graph re-compile a portion of the webassembly code and use it to accelerate the simulation.

### Test locally
Make sure you are using the latest version of stable rust by running `rustup update`.

Expand All @@ -28,3 +31,5 @@ Just run `trunk build --release`.
- [x] Add another set of nodes for per-particle alongside the existing per-neighbor. Include a dt!
- [ ] Specify output node type!
- [ ] Subroutines? !
- [ ] "Maximum" and "Minimum" functions
- [ ] Vector reduction functions
1 change: 1 addition & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ impl TemplateApp {
("Attract".into(), serde_json::from_slice(include_bytes!("builtin_configs/attract.json")).unwrap()),
("CentralForce".into(), serde_json::from_slice(include_bytes!("builtin_configs/central-force.json")).unwrap()),
("LifeOnly".into(), serde_json::from_slice(include_bytes!("builtin_configs/particle-life-only.json")).unwrap()),
("RingPotential".into(), serde_json::from_slice(include_bytes!("builtin_configs/ring-potential.json")).unwrap()),
],
};

Expand Down

0 comments on commit e55d0f0

Please sign in to comment.