{"id":18870330,"url":"https://github.com/rlguy/flipviscosity3d","last_synced_at":"2025-04-14T15:21:09.509Z","repository":{"id":75542540,"uuid":"82251171","full_name":"rlguy/FLIPViscosity3D","owner":"rlguy","description":"A basic free-surface liquid FLIP fluid simulator with viscosity","archived":false,"fork":false,"pushed_at":"2024-02-13T20:05:18.000Z","size":1480,"stargazers_count":129,"open_issues_count":1,"forks_count":21,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-03-28T04:11:25.164Z","etag":null,"topics":["animation","fluid-solver","simulation","viscosity"],"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/rlguy.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2017-02-17T03:03:36.000Z","updated_at":"2024-10-27T15:05:41.000Z","dependencies_parsed_at":"2023-03-11T19:59:38.790Z","dependency_job_id":"017d6a8d-7c6f-48e1-a1ac-dee858160417","html_url":"https://github.com/rlguy/FLIPViscosity3D","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/rlguy%2FFLIPViscosity3D","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlguy%2FFLIPViscosity3D/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlguy%2FFLIPViscosity3D/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rlguy%2FFLIPViscosity3D/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rlguy","download_url":"https://codeload.github.com/rlguy/FLIPViscosity3D/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248904622,"owners_count":21180836,"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":["animation","fluid-solver","simulation","viscosity"],"created_at":"2024-11-08T05:19:44.229Z","updated_at":"2025-04-14T15:21:09.484Z","avatar_url":"https://github.com/rlguy.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# FLIPViscosity3D\n\nThis program is a basic free-surface liquid FLIP fluid simulator with viscosity. The fluid simulation program exports the simulation particle positions as a sequence of .OBJ or .PLY meshes containing only vertices. The particles can then be meshed and rendered in a separate program.\n\nThis program implements the following methods for the variational pressure solver and the variational viscosity solver:\n\n* [Fast Variational Framework for Accurate Solid-Fluid Coupling](https://hal.archives-ouvertes.fr/file/index/docid/384725/filename/variationalFluids.pdf) by Batty, Bertails, and Bridson\n* [Accurate Viscous Free Surfaces for Buckling, Coiling, and Rotating Liquids](https://cs.uwaterloo.ca/~c2batty/papers/BattyBridson08.pdf) by Batty and Bridson\n\nMuch of the simulation method was adapted from code available from [Christopher Batty's GitHub page](https://github.com/christopherbatty) and also code available from my [GridFluidSim3D](https://github.com/rlguy/GridFluidSim3D) project.\n\n## Gallery\n\nThe following images were generated from particle data output by the program and rendered using [Blender](http://www.blender.org).\n\n[![alt tag](http://i.imgur.com/EOgftEL.jpg)](http://i.imgur.com/R97LLa5.jpg) [![alt tag](http://i.imgur.com/K5OLqDj.jpg)](http://i.imgur.com/weVF42W.jpg)\n\n[![alt tag](http://i.imgur.com/vivBTG0.jpg)](http://i.imgur.com/M2G2tm4.jpg) [![alt tag](http://i.imgur.com/7DnmSfm.jpg)](http://i.imgur.com/lkaoatu.jpg)\n\nAn animation of a buckling honey simulation can be viewed [here](https://www.youtube.com/watch?v=Oxsr4m-s3C8).\n\n## Features\nBelow is a list of features implemented in the simulator.\n\n* FLIP (Fluid-Implicit-Particle) simulation method\n* Accurate variational pressure solve for free-surfaces and curved boundaries\n* Accurate viscosity for buckling, coiling, and rotating liquids\n* Initialize fluids and solid boundaries from triangle meshes\n\n## Dependencies\n\nEverything required to run this program is included in the repository. A compiler that supports C++11 is required to build the program.\n\n## Installation\n\nThis program uses the [CMake](https://cmake.org/) utility to generate the appropriate solution, project, or Makefiles for your system. A Makefile is also provided.\n\nSample triangle meshes are located in the ```sample_meshes``` directory.\n\nThe default simulation will drop a mass of fluid in the shape of the Stanford Bunny inside of a spherical container.\n\n[![alt tag](http://i.imgur.com/sRZi5bQ.jpg)](http://i.imgur.com/rRRnJXs.jpg)\n\n## Rendering in Blender\n\nAn example script for how to import the particle meshes into [Blender](http://blender.org) for rendering is located [here](src/blender/render_particles.py). This script will import a .obj mesh sequence into Blender and update the mesh data on a frame change. The sequence can be rendered in Blender 3.1 or later by converting the object to a Point Cloud using the Geometry Nodes Mesh to Points Node.\n\nUsage: load the script into the Blender text editor, edit the ```MESH_CACHE_PATH``` variable to point to the directory containing the simulation meshes, and press the 'Run Script' button.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlguy%2Fflipviscosity3d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frlguy%2Fflipviscosity3d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frlguy%2Fflipviscosity3d/lists"}