Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hagmas/MobileFluidSimulation
Fluid Simulation with Metal
https://github.com/hagmas/MobileFluidSimulation
fluid-simulation metal swift
Last synced: about 2 months ago
JSON representation
Fluid Simulation with Metal
- Host: GitHub
- URL: https://github.com/hagmas/MobileFluidSimulation
- Owner: hagmas
- License: mit
- Created: 2017-10-29T04:51:07.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2017-10-30T12:43:50.000Z (almost 7 years ago)
- Last Synced: 2024-04-04T18:35:38.673Z (6 months ago)
- Topics: fluid-simulation, metal, swift
- Language: Swift
- Size: 5.42 MB
- Stars: 91
- Watchers: 2
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MobileFluidSimulation
Fluid Simulation with Metal
# About MobileFluidSimulation
MobileFluidSimulation is a metal implementation of [Fast Fluid Dynamics Simualtion on the GPU](http://developer.download.nvidia.com/books/HTML/gpugems/gpugems_ch38.html). In the simualtion part, the velocity field of the fluid is calculated using Navier-Stokes Equations which is implemented using metal kernel functions and it advects the color field. The color field is visualized on `MTKView` by a normal rendering pipeline.
# How to play
1. Donwload & build the project.
2. Run the application on actual devices. The example application doesn't work on Simulator since Metal is not available on Simulator.
3. Drag the view with multiple fingers or double tap to reset the view.