Gas models, combustion and gas turbine solver.
pyTurb is a Python module for Thermodynamics, Combustion and Power Plants. In pyTurb you will find:
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.
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.
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...src\pyturb\power_plant\
intake.py
): Diffuser control volume (lowers kinetic energy, raises sensible enthalpy)nozzle.py
): Nozzle control volume (raises kinetic energy, lowers, T and p)combustor.py
): Heat power provided a fuel and oxidizersrc\pyturb\gas_models\
perfect_ideal_gas.py
, semiperfect_ideal_gas.py
):
gas_mixture.py
):
combustion_thermodynamics.py
):
isa.py
)src\pyturb\utils\
units.py
)constants.py
)numerical_iterators.py
)[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