All Projects → MRod5 → pyturb

MRod5 / pyturb

Licence: MIT License
Gas models, combustion and gas turbine solver.

Programming Languages

python
139335 projects - #7 most used programming language
Jupyter Notebook
11667 projects

Projects that are alternatives of or similar to pyturb

dwsim4
DWSIM - Open Source Chemical Process Simulator, version 4
Stars: ✭ 38 (+15.15%)
Mutual labels:  thermodynamics
reactorch
A Differentiable Reacting Flow Simulation Package in PyTorch
Stars: ✭ 24 (-27.27%)
Mutual labels:  combustion
scoop-clojure
Install Clojure on Windows with Scoop
Stars: ✭ 73 (+121.21%)
Mutual labels:  jet
JetEntityFrameworkProvider
Microsoft Access (Jet) Entity Framework provider
Stars: ✭ 77 (+133.33%)
Mutual labels:  jet
neqsimpython
NeqSim is a library for calculation of fluid behavior, phase equilibrium and process simulation. This project is a Python interface to NeqSim.
Stars: ✭ 22 (-33.33%)
Mutual labels:  thermodynamics
KinBot
Automated reaction pathway search for gas-phase molecules
Stars: ✭ 20 (-39.39%)
Mutual labels:  combustion
Clapeyron.jl
Clapeyron (formerly OpenSAFT) provides a framework for the development and use of fluid-thermodynamic models, including SAFT, cubic, activity, multi-parameter, and COSMO-SAC.
Stars: ✭ 81 (+145.45%)
Mutual labels:  thermodynamics
PyTherm-applied-thermodynamics
Educational ipython source code for applied thermodynamics.
Stars: ✭ 62 (+87.88%)
Mutual labels:  thermodynamics
jet
A Fast C and Python like Programming Language that puts the Developer first. WIP
Stars: ✭ 41 (+24.24%)
Mutual labels:  jet
jet
Jet is a simple OOP, dynamically typed, functional language that runs on the Erlang virtual machine (BEAM). Jet's syntax is Ruby-like syntax.
Stars: ✭ 22 (-33.33%)
Mutual labels:  jet
ESPEI
Fitting thermodynamic models with pycalphad - https://doi.org/10.1557/mrc.2019.59
Stars: ✭ 46 (+39.39%)
Mutual labels:  thermodynamics
neqsim
NeqSim is a library for calculation of fluid behavior, phase equilibrium and process simulation
Stars: ✭ 39 (+18.18%)
Mutual labels:  thermodynamics
NGA2
Object-oriented multi-mesh version of the classic reacting turbulent multiphase flow solver
Stars: ✭ 25 (-24.24%)
Mutual labels:  combustion

pyTurb: A python Gas Turbine package!

pyTurb is a Python module for Thermodynamics, Combustion and Power Plants. In pyTurb you will find:

  • ISA model (Standard Atmosphere)
  • Thermodynamic properties of gases (NASA Glenn Coefficients)
  • Perfect and Semiperfect Ideal Gas relations and Gas Mixtures
  • Isentropic Flow relations
  • Combustion properties and kinetics
  • Power Plant control volumes (nozzle, intake, combustor...)
  • Propulsion equations (jet engine performance)

You will wind examples about how to use pyTurb in the Notebooks folder.

pyTurb is currently under development. In the near future, compressor, turbine and more combustion features will be added, as well as jet engine performance equations.


How to use pyTurb:

The easiest way to use pyTurb is to install it with pip and the setup.py file. Download pyTurb and then, from the source folder, type in a command window:

pip install .

If you want to have pyTurb in editable mode:

pip install -e .

With pyTurb installed, you can import any Gas Model, Combustion thermodynamics or Power Plant features. You can find use-cases and examples about how to execute pyTurb at the notebooks folders.

Notebooks with pyTurb examples:

You will find different Notebooks with examples about to use pyTurb:

  • ISA examples.ipynb: Standard atmosphere example (temperature, pressure, density and altitude for different layers).
  • Perfect and Semiperfect gas models.ipynb: gas constant, specific heat capacity, heat ratio etc. Examples as perfect gas (constant values) or semiperfect gas (as a function of the temperature).
  • Gas Mixtures: Mixtures of different pure substances. May be a perfect (constant values) or semiperfect (as a function of temperature) gas.
  • Isentropic flow relations.ipynb: Examples about basic isentropic flow relations: stagnation temperature, stagnation pressue, Mach number, sound speed, free stream velocity...
  • ...

Control Volumes:

src\pyturb\power_plant\

  • Intake (intake.py): Diffuser control volume (lowers kinetic energy, raises sensible enthalpy)
  • Nozzle (nozzle.py): Nozzle control volume (raises kinetic energy, lowers, T and p)
  • Combustor (combustor.py): Heat power provided a fuel and oxidizer
  • more to come...

Gas Models:

src\pyturb\gas_models\

  • Perfect Ideal Gas and Semiperfect Ideal Gas approaches (perfect_ideal_gas.py, semiperfect_ideal_gas.py):
    • Perfect gas: Constant cp, cv, gamma
    • Semiperfect gas: Specific heats are functions of the temperature. cv(T), cp(T), gamma(T)
    • Ideal gas: pv=RgT, Rg=cp-cv
  • Gas Mixtures of ideal gases (gas_mixture.py):
    • Mixture properties (molar fraction, mass fraction, cp, cv, gamma...)
    • Mixture may be Perfect or Semiperfect
  • Combustion thermodynamics (combustion_thermodynamics.py):
    • Stoichiometric coefficients, LHV, HHV, heat of combustion
    • Fuel mixtures and oxidizer mistures
    • Fuel-air ratio
  • Implemented the International Standard Atmosphere (COESA 1975) from 0m to 84852m (isa.py)

Utils:

src\pyturb\utils\

  • Conversion of units to and from international system (units.py)
  • Universal constants (constants.py)
  • Numerical iterators: root finder with variable step and equation iterator for 2 independent variables (numerical_iterators.py)

References

[1] - Equations tables and charts for compressible flow. National Advisory Committee for Aeronautics, report 1135

[2] - Coefficients for calculating thermodynamic and transport properties of individual species. NASA Technical Memorandum 4513

[3] - NASA Glenn Coefficients for Calculating Thermodynamic Properties of Individual Species. NASA / TP - 2002-211556

[4] - Defining constants, equations, and abbreviated tables of the 1975 U.S. Standard Atmosphere. NASA Technical Report TR R-459


Marcos Rodríguez

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].