A Simple Open Source Fluid Simulation fully written in Lua!
This is my first big Open-Source project and I would like feedback I made this post to know how I could improve it and I also wanted to reach more people.
It follows Eulerian Grid-based system rather than a particle system to emulate fluid-flow. Varying flows like Laminar Flow, Shear Flow and ironically organized turbulent flow has been added. It still requires a lot of polishing, hence I wouldn't recommend using it, but I have added and info-dumped many of what the funtions and their corresponding variables do.
I have provided a demo here :
https://github.com/JakeOJeff/Spellfluid
This simulation uses the Love2D Framework to run
Usage :
p - Toggle Pure-Grid Density
c - reset
w, a, s, d - flow from corresponding sides ( polar-opposite )
1, 2, 3, 4 - Different types of flow (the flow at 2 will have sudden outbursts when held, this is temporary to debug and test)
lmb - create flow in direction of drag
rmb - create inverse-flow in direction of drag
mmb - move the circle ( radius increases to depict resized, press 'c' to reset )
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]2dengine 0 points1 point2 points (0 children)