Skip to content

Commit

Permalink
Implemented bleed channel
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezrivera committed May 18, 2024
1 parent db0e1d5 commit 4166257
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 4 deletions.
3 changes: 1 addition & 2 deletions huracan/components/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
-------------------------
"""

from huracan.components.static import intake, inlet, nozzle
from huracan.components.channels import intake, inlet, nozzle, bleed_duct
from huracan.components.rotary import fan, prop, propfan, compressor, turbine
from huracan.components.power.combustion import combustion_chamber, afterburner
from huracan.components.power.sinks import electrical_system
from huracan.components.heat_exchangers import intercooler

37 changes: 35 additions & 2 deletions huracan/components/static.py → huracan/components/channels.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# SPDX-License-Identifier: vGPL-3.0-only

"""
Static components
-----------------
Engine channels
---------------
"""

from huracan.engine import component
Expand Down Expand Up @@ -56,6 +56,39 @@ def __init__(self,
assert not isinstance(eta, type(None)) or not isinstance(PI, type(None)) or not isinstance(TAU, type(None))


class bleed_duct(component):
"""
Bleed duct
----------
"""
def __init__(self,
t01,
eta,
PI=1,
):
"""
:param t01: Temperature after the bleed duct.
:param eta: Isentropic efficiency.
:param PI: Pressure ratio.
"""

self.t01 = t01
self.eta = eta
self.PI = PI

def tf(self, gas):

dt = self.t01 - gas.t0

self.Q_out = dt*gas.mf*gas.cp(gas.t0) / self.eta

return gas.heat_exchange(eta=self.eta,
PI=self.PI,
cp=gas.cp(gas.t0),
Q_ex=self.Q_out,
)


class nozzle(component):
"""
Nozzle
Expand Down

0 comments on commit 4166257

Please sign in to comment.