{"id":39289680,"url":"https://github.com/hawkgs/wasm-fluid","last_synced_at":"2026-01-18T01:16:22.724Z","repository":{"id":231379041,"uuid":"781388220","full_name":"hawkgs/wasm-fluid","owner":"hawkgs","description":"🌊 Browser-based fluid simulation (Müller et al SPH method)","archived":false,"fork":false,"pushed_at":"2024-05-05T08:07:49.000Z","size":16358,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-21T10:02:14.162Z","etag":null,"topics":["canvas","cfd","fluid-dynamics","fluid-simulation","golang","javascript","simluation","webassembly"],"latest_commit_sha":null,"homepage":"","language":"Go","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/hawkgs.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}},"created_at":"2024-04-03T09:35:48.000Z","updated_at":"2024-06-12T16:42:44.000Z","dependencies_parsed_at":"2024-04-03T20:25:45.826Z","dependency_job_id":"f99a9e82-8924-42a4-a577-d790cdd94269","html_url":"https://github.com/hawkgs/wasm-fluid","commit_stats":null,"previous_names":["hawkgs/wasm-fluid"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hawkgs/wasm-fluid","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkgs%2Fwasm-fluid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkgs%2Fwasm-fluid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkgs%2Fwasm-fluid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkgs%2Fwasm-fluid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hawkgs","download_url":"https://codeload.github.com/hawkgs/wasm-fluid/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hawkgs%2Fwasm-fluid/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28525964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"ssl_error","status_checked_at":"2026-01-18T00:39:39.467Z","response_time":85,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["canvas","cfd","fluid-dynamics","fluid-simulation","golang","javascript","simluation","webassembly"],"created_at":"2026-01-18T01:16:22.160Z","updated_at":"2026-01-18T01:16:22.713Z","avatar_url":"https://github.com/hawkgs.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wasm-fluid\n\n_**Under development**_\n\n🌊 Browser-based fluid simulation (Müller et al SPH method).\n\nCalculations: WebAssembly (Go); Visualization: HTML Canvas\n\n![Demo](./assets/demo.gif)\n\nMüller et al SPH method: https://matthias-research.github.io/pages/publications/sca03.pdf\n\n### Issues\n\nAs stated above, the simulation is based on smoothed-particle hydrodynamics method by M. Müller and others. It incorporates density, pressure and viscosity calculations, plus external forces – gravity in our case. Surface tension is not implemented. Since the paper focuses on 3D SPH, the used smoothing kernels for this implementation – or more precisely, their normalization scaling factors – are adapted for 2D. Anyway, there are still things that require attention/fixes, some of which are probably a matter of proper parameter tuning:\n\n- Achieve stability\n- ~~The fluid acts as a highly viscous liquid.~~\n- ~~Particles that go outside of the particle stack and then get reintroduced at the edge of the smoothing radus of another particle, produce a critically low density. When the forces are divided by the density, the product acceleration has a very large magnitude which ejects the particle from the stack. There is a temporary fix for this.~~\n- ~~There is an instability at the edge of the fluid sometimes. This is, again, most likely a result of low densities producing high acceleration (but not enough to eject the particle out of the fluid).~~\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhawkgs%2Fwasm-fluid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhawkgs%2Fwasm-fluid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhawkgs%2Fwasm-fluid/lists"}