{"id":26091508,"url":"https://github.com/pmocz/advectiondiffusion-jax","last_synced_at":"2026-04-21T14:34:01.457Z","repository":{"id":242755472,"uuid":"810376352","full_name":"pmocz/advectiondiffusion-jax","owner":"pmocz","description":"Solve the advection diffusion equations looped into an optimization problem with JAX/autodiff","archived":false,"fork":false,"pushed_at":"2024-06-07T18:55:01.000Z","size":376,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-07T21:47:46.915Z","etag":null,"topics":["automatic-differentiation","jax","scientific-computing","tutorial"],"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/pmocz.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":"2024-06-04T15:15:58.000Z","updated_at":"2024-06-07T18:56:08.000Z","dependencies_parsed_at":"2024-06-05T21:41:19.501Z","dependency_job_id":null,"html_url":"https://github.com/pmocz/advectiondiffusion-jax","commit_stats":null,"previous_names":["pmocz/advectiondiffusion-jax"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmocz%2Fadvectiondiffusion-jax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmocz%2Fadvectiondiffusion-jax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmocz%2Fadvectiondiffusion-jax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pmocz%2Fadvectiondiffusion-jax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pmocz","download_url":"https://codeload.github.com/pmocz/advectiondiffusion-jax/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242675699,"owners_count":20167588,"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":["automatic-differentiation","jax","scientific-computing","tutorial"],"created_at":"2025-03-09T10:21:26.932Z","updated_at":"2026-04-21T14:33:56.427Z","avatar_url":"https://github.com/pmocz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# advectiondiffusion-jax\nSolve the advection diffusion equations looped into an optimization problem with JAX/autodiff\n\n## Create Your Own Automatically Differentiable Simulation (With Python/JAX)\n\n### Philip Mocz (2024) Flatiron Institute, [@PMocz](https://twitter.com/PMocz)\n\n### [📝 Read the Algorithm Write-up on Medium](https://philip-mocz.medium.com/create-your-own-automatically-differentiable-simulation-with-python-jax-46951e120fbb)\n\nSimulate the advection-diffusion equations with finite difference and calculate gradients automatically with JAX,\nin order to find which simulation input parameters lead to 'worst-case' pollution scenario.\n\n\nRun the code in the command line with:\n\n```console\npython advection_diffusion.py\n```\n\nSimulation result:\n\n![Simulation](./simulation.png)\n\n'Worst-case' pollution scenario:\n\n![Pollution](./pollution.png)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmocz%2Fadvectiondiffusion-jax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpmocz%2Fadvectiondiffusion-jax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpmocz%2Fadvectiondiffusion-jax/lists"}