Coder Social home page Coder Social logo

mrod5 / pyturb Goto Github PK

View Code? Open in Web Editor NEW
61.0 6.0 15.0 650 KB

Gas models, combustion and gas turbine solver.

License: MIT License

Python 56.54% Jupyter Notebook 43.46%
gas-turbine thermodynamics jet jet-engine air-model combustion-thermodynamics gas-model combustion

pyturb's People

Contributors

mrod5 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

pyturb's Issues

FAR of gas mixtures as oxidizers

Reactants with other oxidizers than air cannot compute the Fuel Air Ratio (FAR), as it is not yet implemented. As Issue #17 implements oxidizer mixtures, FAR should be easily calculated.

Combustion reaction with gas mixture as oxidizer

combustion_thermodynamics.Combustion() #() allows gas mixtures for both fuels and oxidizers. In case of the fuel mixtures, it is not already developed, but in the case of the oxidizers mixtures, the reactants do not consider O2 in the mixture.

Create a customized gas

Although there is a vast amount of species in the Nasa Glenn thermodynamic properties, it can be useful to define a new gas and use it as a Perfect or Semiperfect Ideal gas.

This feature should replicate a PerfectIdealGas or SemiperfectIdealGas object but with customized data.

Enable more fuels at Combustion()

Whenever a Combustion() is initiated, the fuel and oxidixer proposed for the combustion are checked within a list that is hard-coded at Combustion.__init__. The list is very limited and the species name do not coincide with the name of the gas in PerfectIdealgas or SemiperfectIdealGas.

The list of accepted fuels and oxidixers should be expanded and it should be enough to provide the basic chemical formula instead of the name at Nasa Glenn file. I.e:

  • There are 8 species (isomers) of the butene (C4H8):
    • C4H8,1-butene
    • C4H8,cis2-buten
    • C4H8,tr2-butene
    • C4H8,isobutene
    • C4H8,cyclo-
    • C4H8(L),1-buten
  • The __init()__ in Combustion checks that the literal gas species name is among the allowed fuels
  • Thus the 8 different species should be listed among the allowed fuels in order to make use of them

It would be more efficient to search for the basic formula instead the complete literal, i.e. search for 'C4H8' instead of 'C4H8,1-butene'

Cp spike value

Spike value when you use cp(i) with i = 1000, (K)

image

\ \
from pyturb.gas_models import SemiperfectIdealGas
import numpy as np
import matplotlib.pyplot as plt

t = np.linspace(200,3000)
cp = []
for i in t:
cp0 = semiperfect_air.cp(i)
cp.append(cp0)

plt.xlabel('K', fontsize=15)
plt.ylabel('c_p', fontsize=15)
plt.plot(t, cp)
plt.grid(True)
plt.show()
\ \

Have a look at scikit-aero

Some of the calculations here such as isa and isoentropic flows can be found also in scikit-aero:: //github.com/AeroPython/scikit-aero#usage

Maybe you can find some inspiration there or can contribute with something ๐Ÿ˜ƒ

Combustor initial conditions

Declare initial pressure and temperature of the combustor and the initial temperature and density of the reactants. Create it as new class properties and create a function to write the values.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.