{"id":46371371,"url":"https://github.com/davide-sd/pygasflow","last_synced_at":"2026-03-05T04:03:34.932Z","repository":{"id":43743007,"uuid":"185648851","full_name":"Davide-sd/pygasflow","owner":"Davide-sd","description":"Python functions for Quasi-1D Gasdynamics","archived":false,"fork":false,"pushed_at":"2025-11-20T07:49:55.000Z","size":8452,"stargazers_count":30,"open_issues_count":0,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2026-02-27T11:06:26.640Z","etag":null,"topics":["aerothermodynamics","compressible-flow","fanno","flow-dynamics","gas-dynamics","hypersonics","ideal-gas","isentropic","rayleight","shockwave","subsonic","supersonic"],"latest_commit_sha":null,"homepage":"https://pygasflow.readthedocs.io","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/Davide-sd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":"Davide-sd"}},"created_at":"2019-05-08T17:12:07.000Z","updated_at":"2026-02-14T17:55:01.000Z","dependencies_parsed_at":"2024-11-06T14:18:33.431Z","dependency_job_id":"d21e2aa7-2102-4693-85b4-553cac6a560a","html_url":"https://github.com/Davide-sd/pygasflow","commit_stats":{"total_commits":79,"total_committers":1,"mean_commits":79.0,"dds":0.0,"last_synced_commit":"1f59a714a3d58dbb68619c905a18869aa00fbd5a"},"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/Davide-sd/pygasflow","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davide-sd%2Fpygasflow","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davide-sd%2Fpygasflow/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davide-sd%2Fpygasflow/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davide-sd%2Fpygasflow/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Davide-sd","download_url":"https://codeload.github.com/Davide-sd/pygasflow/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Davide-sd%2Fpygasflow/sbom","scorecard":{"id":38422,"data":{"date":"2025-08-11","repo":{"name":"github.com/Davide-sd/pygasflow","commit":"f9d340e6f02a07ab335e5def4caf7acc24e3ed7e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/python-package.yml:1","Warn: no topLevel permission defined: .github/workflows/python-publish.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/Davide-sd/pygasflow/python-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-package.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/Davide-sd/pygasflow/python-package.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/Davide-sd/pygasflow/python-publish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/python-publish.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/Davide-sd/pygasflow/python-publish.yml/master?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:30","Warn: pipCommand not pinned by hash: .github/workflows/python-package.yml:31","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/python-publish.yml:29","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of   1 third-party GitHubAction dependencies pinned","Info:   0 out of   5 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/python-publish.yml:16"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Vulnerabilities","score":0,"reason":"26 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-29gw-9793-fvw7","Warn: Project is vulnerable to: PYSEC-2015-24 / GHSA-4vwq-x64q-j4cj","Warn: Project is vulnerable to: PYSEC-2017-46 / GHSA-66gw-5xpf-gfp5","Warn: Project is vulnerable to: PYSEC-2015-25 / GHSA-92mr-v722-f48m","Warn: Project is vulnerable to: PYSEC-2022-12 / GHSA-pq7m-3gw7-gq5x","Warn: Project is vulnerable to: PYSEC-2017-47","Warn: Project is vulnerable to: PYSEC-2019-217 / GHSA-462w-v97r-4m45","Warn: Project is vulnerable to: PYSEC-2014-8 / GHSA-8r7q-cvjq-x353","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: PYSEC-2014-82 / GHSA-fqh9-2qgg-h84h","Warn: Project is vulnerable to: PYSEC-2021-66 / GHSA-g3rq-g295-4j3m","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: PYSEC-2019-220 / GHSA-hj2j-77xm-mc5v","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: PYSEC-2018-34 / GHSA-2fc2-6r4j-p65h","Warn: Project is vulnerable to: PYSEC-2021-856 / GHSA-5545-2q6w-2gh6","Warn: Project is vulnerable to: PYSEC-2019-108 / GHSA-9fq2-x9r6-wfmf","Warn: Project is vulnerable to: PYSEC-2018-33 / GHSA-cw6w-4rcx-xphc","Warn: Project is vulnerable to: PYSEC-2021-857 / GHSA-f7c7-j99h-c22f","Warn: Project is vulnerable to: GHSA-fpfv-jqm9-f5jm","Warn: Project is vulnerable to: PYSEC-2017-1 / GHSA-frgw-fgh6-9g52","Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: PYSEC-2019-156 / GHSA-xp76-357g-9wqq","Warn: Project is vulnerable to: PYSEC-2023-102","Warn: Project is vulnerable to: PYSEC-2023-114"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-14T20:50:17.774Z","repository_id":43743007,"created_at":"2025-08-14T20:50:17.774Z","updated_at":"2025-08-14T20:50:17.774Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30109077,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-05T03:40:26.266Z","status":"ssl_error","status_checked_at":"2026-03-05T03:39:15.902Z","response_time":93,"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":["aerothermodynamics","compressible-flow","fanno","flow-dynamics","gas-dynamics","hypersonics","ideal-gas","isentropic","rayleight","shockwave","subsonic","supersonic"],"created_at":"2026-03-05T04:03:34.180Z","updated_at":"2026-03-05T04:03:34.905Z","avatar_url":"https://github.com/Davide-sd.png","language":"Python","funding_links":["https://github.com/sponsors/Davide-sd","https://www.buymeacoffee.com/davide_sd"],"categories":[],"sub_categories":[],"readme":"# pygasflow\n\n[![PyPI version](https://badge.fury.io/py/pygasflow.svg)](https://badge.fury.io/py/pygasflow)\n[![Conda Version](https://img.shields.io/conda/vn/conda-forge/pygasflow.svg)](https://anaconda.org/conda-forge/pygasflow)\n[![Documentation Status](https://readthedocs.org/projects/pygasflow/badge/?version=latest)](https://pygasflow.readthedocs.io/en/latest/?badge=latest)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Davide-sd/pygasflow/HEAD)\n[![](https://img.shields.io/static/v1?label=Github%20Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86)](https://github.com/sponsors/Davide-sd)\n\n**pygasflow** is a Python package that provides a few handful functions to quickly perform:\n\n* Compressible flow computation in the quasi-1D ideal gasdynamic (perfect gas) regime. The following solvers are implemented:\n  * ``isentropic_solver``.\n  * ``fanno_solver``.\n  * ``rayleigh_solver``.\n  * ``shockwave_solver`` for normal and oblique shock waves.\n  * ``conical_shockwave_solver``.\n  * ``De_Laval_solver`` and the ``nozzles`` sub-module, containing functions and classes to understand convergent-divergent nozzles, Rao's TOP nozzles (Thrust Optmizie Parabolic), Minimum Length nozzle with Method of Characteristics. Nozzles can be used to quickly visualize their geometric differences or to solve the isentropic expansion with the `De_Laval_Solver` class.\n\n* Aerothermodynamic computations (``pygasflow.atd`` module):\n  * Correlations to estimate boundary layer thickness, heat flux and wall shear stress over a flat plate or a stagnation region.\n  * Newtonian Flow Theory to estimate the pressure distribution around objects and their aerodynamic characteristics.\n\nThe following charts has been generated with the functions included in this package:\n\u003cdiv\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/isentropic.png\" width=250/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/fanno.png\" width=250/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/rayleigh.png\" width=250/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/oblique-shock.png\" width=250/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/conical-shock.png\" width=250/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/shock-reflection.png\" width=250/\u003e\n\u003c/div\u003e\n\n\nThe following screenshots highlights the interactive capabilities implemented\nin this module:\n\n\u003cdiv\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/interactive-rayleigh.png\" width=250/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/interactive-oblique-shock.png\" width=250/\u003e\n\u003cimg src=\"https://raw.githubusercontent.com/Davide-sd/pygasflow/master/imgs/interactive-nozzles.png\" width=250/\u003e\n\u003c/div\u003e\n\n\n## Development and Support\n\nIf you feel like a feature could be implemented, open an issue or create a PR.\nImplementing new features and fixing bugs requires time and energy too.\nIf you found this module useful and would like to show your appreciation,\nplease consider sponsoring this project with either one of these options:\n\n[![\"Buy Me A Coffee\"](https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png)](https://www.buymeacoffee.com/davide_sd)\nor\n[![](https://img.shields.io/static/v1?label=Github%20Sponsor\u0026message=%E2%9D%A4\u0026logo=GitHub\u0026color=%23fe8e86)](https://github.com/sponsors/Davide-sd)\n\n\n## Installation\n\nThe repository is avaliable on PyPi:\n\n```\npip install pygasflow\n```\n\nAnd also on Conda:\n\n```\nconda install conda-forge::pygasflow\n```\n\n\n## Usage\n\nThe easiest way is to call a solver.\nLet's say you need to solve an isentropic flow:\n\n```python\nfrom pygasflow import isentropic_solver\n\n# optional steps needed to use units with pint\nimport pint\nimport pygasflow\nureg = pint.UnitRegistry()\n# use short units notation\nureg.formatter.default_format = \"~\"\n# let pygasflow knows which UnitRegistry to use\npygasflow.defaults.pint_ureg = ureg\n\nT1 = 290 * ureg.K\np1 = 1 * ureg.atm\n\n# compute ratios and quantities for an isentropic flow at Mach 2\nres = isentropic_solver(\"m\", 2, to_dict=True)\nres.show()\n# key     quantity\n# ----------------------------\n# m       M                        2.00000000\n# pr      P / P0                   0.12780453\n# dr      rho / rho0               0.23004815\n# tr      T / T0                   0.55555556\n# prs     P / P*                   0.24192491\n# drs     rho / rho*               0.36288737\n# trs     T / T*                   0.66666667\n# urs     U / U*                   1.63299316\n# ars     A / A*                   1.68750000\n# ma      Mach Angle              30.00000000\n# pm      Prandtl-Meyer           26.37976081\n\n# compute total quantities\nT0 = (1 / res[\"tr\"]) * T1\nP0 = (1 / res[\"pr\"]) * p1\nprint(\"---------\")\nprint(f\"P0 = {P0}\")\nprint(f\"T0 = {T0}\")\n# ---------\n# P0 = 7.824449066867263 atm\n# T0 = 522.0 K\n```\n\nShould a solver not be sufficient for your use case, feel free to explore the\ncode implemented inside each flow's type, maybe you'll find a function that\nsuits your needs.\n\nPlease:\n\n* visit the [documentation page](https://pygasflow.readthedocs.io/en/latest/).\n* take a look at the notebooks contained in the [examples](examples/) folder.\n  You can also try this package online with Binder. [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/Davide-sd/pygasflow/HEAD)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavide-sd%2Fpygasflow","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavide-sd%2Fpygasflow","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavide-sd%2Fpygasflow/lists"}