{"id":19867549,"url":"https://github.com/erkaman/fluid_sim","last_synced_at":"2025-05-02T06:31:08.347Z","repository":{"id":141382726,"uuid":"131421990","full_name":"Erkaman/fluid_sim","owner":"Erkaman","description":"Flashy 2D fluid simulations experiments.","archived":false,"fork":false,"pushed_at":"2020-05-21T12:27:16.000Z","size":28603,"stargazers_count":105,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T23:14:15.924Z","etag":null,"topics":["2d","cpp","fluid","opengl","simulation"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Erkaman.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-28T15:37:25.000Z","updated_at":"2025-03-29T03:17:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"c8b0f468-1c8a-4461-b5b2-86610f5424c2","html_url":"https://github.com/Erkaman/fluid_sim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erkaman%2Ffluid_sim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erkaman%2Ffluid_sim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erkaman%2Ffluid_sim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erkaman%2Ffluid_sim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Erkaman","download_url":"https://codeload.github.com/Erkaman/fluid_sim/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251998279,"owners_count":21677966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["2d","cpp","fluid","opengl","simulation"],"created_at":"2024-11-12T15:29:38.707Z","updated_at":"2025-05-02T06:31:08.333Z","avatar_url":"https://github.com/Erkaman.png","language":"C","readme":"# fluid_sim - Some flashy 2D fluid simulations\n\n![Animated](gifs/sim1.gif)\n![Animated](gifs/sim2.gif)\n![Animated](gifs/sim3.gif)\n![Animated](gifs/sim4.gif)\n\nAn implementation of the article \"Fast Fluid Dynamics Simulation on the GPU\", using\nC++ and OpenGL 3.3. This implementation implements the \"advection\", and \"projection\" steps from the\narticle. The \"diffusion\" and \"boundary conditions\" steps of the article are not implemented.\nFinally, note that the primary focus was on making flashy simulations, and not on physical realism.\n\n**The code is minimalistic and is written in only ~1000LOC of C++, and uses only OpenGL and no frameworks whatsoever,\nso the code should be readable. The source code can be found in `src/main.cpp`**\n\n# Video\n\nLonger video of fluid simulations:\n\n[![Result](http://img.youtube.com/vi/FDX-9gTC48o/0.jpg)](https://www.youtube.com/watch?v=FDX-9gTC48o)\n\n## Building\n\nThe only dependencies are [GLFW](https://github.com/glfw/glfw) and [stb_image](https://github.com/nothings/stb).\nBoth of which are included within this repository.\n\nWe use CMake for building. If on Linux or OS X, you can build it in the terminal by doing something like:\n\n```\nmkdir build \u0026\u0026 cd build \u0026\u0026 cmake .. \u0026\u0026 make\n```\n\nIf on Windows, create a `build/` folder, and run `cmake ..` from\ninside that folder. This will create a visual studio solution(if you\nhave visual studio). Launch that solution, and then simply compile the\nproject named `fluid_sim`.\n\n\n\n\n\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkaman%2Ffluid_sim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferkaman%2Ffluid_sim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferkaman%2Ffluid_sim/lists"}