Skip to main content

Open source, 0-dimensional, object-oriented airbreathing engine modelling package for preliminary analysis and design of airbreathing engines, divulgation and educational purposes.

Project description

Huracan

The API reference is available here.

:construction: WARNING! Under active development

Install

pip install huracan

Example script

Simple turbojet engine with 2 compressors and 2 turbines in a 2 shaft configuration and no secondary airflows.

from huracan.engine import shaft
from huracan.thermo.fluids import gas, fuel
from huracan.components import inlet, compressor, combustion_chamber, turbine, afterburner, nozzle


mf = 160
M = 0
t = 288
p = 101325

fuel_cc = fuel(LHV=43e6)
fuel_ab = fuel(LHV=43e6)

g = gas(mf=mf,
        cp=lambda T: 1150 if T > 600 else 1000,
        k=lambda T: 1.33 if T > 600 else 1.4,
        m=M, t_0=t, p_0=p)

i  = inlet(PI=0.92)
c1 = compressor(eta=0.85, PI=4)
c2 = compressor(eta=0.85, PI=4)
cc = combustion_chamber(fuel_cc, eta=0.97, t01=1450)
t1 = turbine(0.9)
t2 = turbine(0.9)
ab = afterburner(fuel_ab, eta=0.95, t01=1850)
n  = nozzle(0.95)


shaft1 = shaft(c1, t2, eta=0.99)
shaft2 = shaft(c2, t1, eta=0.99)

stream = g-i-c1-c2-cc-t1-t2-ab-n

stream.run()

# Plot p-v diagram
stream.plot_p_v(show=True, color='orange')
# Plot T-p diagram
stream.plot_T_p(show=True, color='orange')
alt text
alt text
alt text

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

huracan-0.0a1.tar.gz (21.6 kB view details)

Uploaded Source

File details

Details for the file huracan-0.0a1.tar.gz.

File metadata

  • Download URL: huracan-0.0a1.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6

File hashes

Hashes for huracan-0.0a1.tar.gz
Algorithm Hash digest
SHA256 ff243124e92bc80465d17ece15c808b072dac20b32a30183e01e0cc237b52098
MD5 e7c6b5f111badfd003f7b66ad0e8e7a4
BLAKE2b-256 5a8a0021147459b3b358249c859a3af26574e2756735ccfc7ef585d4142b75bb

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