{"id":26702336,"url":"https://github.com/alexandresajus/python-fluid-simulation","last_synced_at":"2025-04-13T11:32:28.244Z","repository":{"id":62678097,"uuid":"248961820","full_name":"AlexandreSajus/Python-Fluid-Simulation","owner":"AlexandreSajus","description":"A 2D Python Implementation of Smoothed Particle Hydrodynamics","archived":false,"fork":false,"pushed_at":"2023-01-30T23:10:47.000Z","size":19854,"stargazers_count":66,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T02:41:06.607Z","etag":null,"topics":["fluid","physics","python","simulation"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AlexandreSajus.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}},"created_at":"2020-03-21T11:26:41.000Z","updated_at":"2025-03-17T18:24:44.000Z","dependencies_parsed_at":"2023-02-16T12:45:15.684Z","dependency_job_id":null,"html_url":"https://github.com/AlexandreSajus/Python-Fluid-Simulation","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/AlexandreSajus%2FPython-Fluid-Simulation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexandreSajus%2FPython-Fluid-Simulation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexandreSajus%2FPython-Fluid-Simulation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AlexandreSajus%2FPython-Fluid-Simulation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AlexandreSajus","download_url":"https://codeload.github.com/AlexandreSajus/Python-Fluid-Simulation/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248705501,"owners_count":21148548,"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":["fluid","physics","python","simulation"],"created_at":"2025-03-27T02:37:25.038Z","updated_at":"2025-04-13T11:32:28.211Z","avatar_url":"https://github.com/AlexandreSajus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **Python Fluid Simulation**\n\n![Pylint Score](assets/pylint.svg)\n\nA Python 2D fluid simulation using SPH\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/standingWave.gif\" alt=\"Standing Wave\" width=\"80%\"/\u003e\n\u003c/p\u003e\n\nImplementing smoothed particle hydrodynamics (SPH) in Python using this \u003ca href=\"https://web.archive.org/web/20090722233436/http://blog.brandonpelfrey.com/?p=303\" target=\"_blank\"\u003etutorial\u003c/a\u003e.\n\nSee also the C# implementation in Unity \u003ca href=\"https://github.com/AlexandreSajus/Unity-Fluid-Simulation\" target=\"_blank\"\u003ehere\u003c/a\u003e.\n\n## **Installation**\n\nMake sure you have Python installed on your computer. Then, in a terminal, run the following commands:\n\n**1. Install the package with pip in your terminal:**\n\n```bash\npip install git+https://github.com/AlexandreSajus/Python-Fluid-Simulation.git\n```\n\n**2. Run the simulation:**\n\n```bash\npython -m pythonsph\n```\n\nThis will prompt a matplotlib animation window with a real-time simulation:\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"assets/realtime.gif\" alt=\"Real Time\" width=\"50%\"/\u003e\n\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandresajus%2Fpython-fluid-simulation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexandresajus%2Fpython-fluid-simulation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexandresajus%2Fpython-fluid-simulation/lists"}