{"id":22669859,"url":"https://github.com/astrobarker/sordine","last_synced_at":"2025-03-29T11:15:27.460Z","repository":{"id":220258982,"uuid":"751171507","full_name":"AstroBarker/sordine","owner":"AstroBarker","description":"Repository of Python 3.x code for hydro self similar solutions, including Sedov-Taylor blast wave","archived":false,"fork":false,"pushed_at":"2024-08-23T17:32:21.000Z","size":509,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-04T10:56:39.456Z","etag":null,"topics":["python-3","sedov","self-similar"],"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/AstroBarker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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-02-01T04:17:20.000Z","updated_at":"2024-08-23T17:32:24.000Z","dependencies_parsed_at":"2024-07-30T22:30:02.350Z","dependency_job_id":"c8804570-666d-48b2-8cfd-31692875d0d2","html_url":"https://github.com/AstroBarker/sordine","commit_stats":null,"previous_names":["astrobarker/self_similar_solutions","astrobarker/sordine"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroBarker%2Fsordine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroBarker%2Fsordine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroBarker%2Fsordine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AstroBarker%2Fsordine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AstroBarker","download_url":"https://codeload.github.com/AstroBarker/sordine/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246174609,"owners_count":20735417,"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":["python-3","sedov","self-similar"],"created_at":"2024-12-09T15:41:43.575Z","updated_at":"2025-03-29T11:15:27.427Z","avatar_url":"https://github.com/AstroBarker.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SOftwaRe valiDatIonN suitE (SORDINE)\nA musical mute and also a repository of Python 3.x [self-similar solutions](https://en.wikipedia.org/wiki/Self-similar_solution) that I've needed, and so written.\nContributions welcome.\nMinimally working environment configurations are provided (`environment.yml` and `requirements.txt`).\n\n# Requirements\nNumpy, scipy, astropy. Any versions fine. Pytest for testing.\n\n# TODO\nWould be nice to unify APIs for different tests, eventually...\n\n# [Sedov-Taylor blast wave](src/sedov.py)\nSelf-similar solution for the Sedov-Taylor non-relativistic blast wave.\nBased on work by [James R. Kamm](https://cococubed.com/papers/kamm_2000.pdf) and [Kamm \u0026 Timmes](https://cococubed.com/papers/la-ur-07-2849.pdf).\nSupports density profiles of the from $\\rho(r) = \\rho_{0} r^{-w}$.\nSupports planar (`j = 1`), cylindrical (`j = 2`), and spherical (`j = 3`) geometries.\nThere are constraints on the density power law index. \nSee the paper.\n\n\n## Usage\n```python\nfrom sedov import Sedov\nsedov_solution = Sedov(j, w, E, rho0, gamma, t_end, r_model)\nr = sedov.r\nrho_sol = sedov.rho_sol\n# plot away\n```\n\n## Testing\nWe include `test.py` that implements tests for the Sedov-Taylor solutions.\nFor this test we set up a grid in geometry, density power law space.\nTo test, we download and compile the `sedov3` [code](https://cococubed.com/research_pages/sedov.shtml) \nprovided by Frank Timmes.\nWe compare our solution to his.\nThis is triggered on every push / PR, and you can invoke by, e.g., `pytest src/test.py`.\nIn the future it should test other solutions.\n\n## TODO:\n- Some solutions, such as velocity, still need implementation.\n\n![Self similar density profiles](sedov.png \"Sedov density profiles\")\n\n# [Blandford McKee Blast Wave](src/bmk.py)\nSee [the paper](https://ui.adsabs.harvard.edu/abs/1976PhFl...19.1130B/abstract).\nComputes post-shock similarity variables and pressure, etc.\nAssumes density profiles of the from $\\rho(r) \\propto r^{-k}$.\n\n## Usage\n```python\nfrom bmk import BMK\nbmk_solution = BMK(k, W, t, P0, t_shock, rad)\nrad = bmk_solution.r\npressure = bmk_solution.p # see also bmk_solution.f for similarity variable\n```\n\n# Thermal Equilibrium\nRadiation hydrodynamic problem testing rad-hydro coupling\nin a static, homogenous medium.\nSolution can be simplified to an ordinary differential equation under some assumptions.\nSee [Turner and Stone](https://ui.adsabs.harvard.edu/abs/2001ApJS..135...95T/abstract).\n\n# Code Style\nCode linting and formatting is done with [ruff](https://docs.astral.sh/ruff/).\nRules are listed in [ruff.toml](ruff.toml).\nTo check all python in the current directory, you may `ruff .`.\nTo format a given file according to `ruff.toml`, run `ruff format file.py`.\nChecks for formatting are performed on each push / PR.\nWe (try to) adhere to [semantic versioning](https://semver.org/) and [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrobarker%2Fsordine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fastrobarker%2Fsordine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fastrobarker%2Fsordine/lists"}