Skip to main content

Ideal Gasdynamics utilities for Python 3.6+

Project description

pygasflow

PyPI version Conda Version Documentation Status Binder

pygasflow is a Python package that provides a few handful functions to quickly perform:

  • Quasi-1D ideal gasdynamic (perfect gas). The following solvers are implemented:

    • isentropic_solver (or ise).
    • fanno_solver (or fan).
    • rayleigh_solver (or ray).
    • shockwave_solver (or ss) for normal and oblique shock waves.
    • conical_shockwave_solver (or css).
    • 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.
  • Aerothermodynamic computations (pygasflow.atd module):

    • Correlations to estimate boundary layer thickness, heat flux and wall shear stress over a flat plate or a stagnation region.
    • Newtonian Flow Theory to estimate the pressure distribution around objects and their aerodynamic characteristics.

The following charts has been generated with the functions included in this package:

Installation

The repository is avaliable on PyPi:

pip install pygasflow

And also on Conda:

conda install conda-forge::pygasflow

Usage

The easiest way is to call a solver. Let's say you need to solve an isentropic flow:

from pygasflow import isentropic_solver
help(isentropic_solver)
isentropic_solver("m", 2, to_dict=True)
# {'m': 2.0,
#  'pr': 0.12780452546295096,
#  'dr': 0.2300481458333117,
#  'tr': 0.5555555555555556,
#  'prs': 0.24192491286747442,
#  'drs': 0.36288736930121157,
#  'trs': 0.6666666666666667,
#  'urs': 2.3515101530718505,
#  'ars': 1.6875000000000002,
#  'ma': 30.000000000000004,
#  'pm': 26.379760813416457}

Should a solver not be sufficient for your use case, feel free to explore the code implemented inside each flow's type, maybe you'll find a function that suits your needs.

Please:

  • take a look at the notebooks contained in the examples folder. You can also try this package online with Binder. Binder
  • visit the documentation page.
  • If you find any errors, open an issue or submit a pull request!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygasflow-1.2.1.tar.gz (83.9 kB view details)

Uploaded Source

Built Distribution

pygasflow-1.2.1-py3-none-any.whl (89.6 kB view details)

Uploaded Python 3

File details

Details for the file pygasflow-1.2.1.tar.gz.

File metadata

  • Download URL: pygasflow-1.2.1.tar.gz
  • Upload date:
  • Size: 83.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pygasflow-1.2.1.tar.gz
Algorithm Hash digest
SHA256 3c054ee16c1afcf34fd5091597f6d780d6fcb31b56cf1664d3536b2787d4f5ef
MD5 ce67912d70a465603a30a036618b8fa7
BLAKE2b-256 f86f14b94b95b61590d7aa206901a714c9467de9a137f626a455b75d660bfd91

See more details on using hashes here.

File details

Details for the file pygasflow-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: pygasflow-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 89.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for pygasflow-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4a6a8122a66ed1e99c9a9bc61a2845831bee987b1a4e61d3a310989b2ab4fee6
MD5 fc51402e84b65789dec623afc32ebf07
BLAKE2b-256 c11557f1947de3dbb50644eeb3800c705a04a1991e6a99787e6bc420e6f06724

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page