Skip to content

Commit

Permalink
more flexible catalyst ID in hydroprocessing units
Browse files Browse the repository at this point in the history
  • Loading branch information
yalinli2 committed Oct 18, 2024
1 parent ea1e790 commit 0164999
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions qsdsan/sanunits/_hydroprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ class Hydrocracking(Reactor):
Weight Hourly Space velocity, [kg feed/hr/kg catalyst].
catalyst_lifetime: float
HC catalyst lifetime, [hr].
catalyst_ID : str
ID of the catalyst.
hydrogen_P: float
Hydrogen pressure, [Pa].
hydrogen_rxned_to_inf_oil: float
Expand Down Expand Up @@ -86,8 +88,10 @@ class Hydrocracking(Reactor):

def __init__(self, ID='', ins=None, outs=(), thermo=None,
init_with='Stream',
include_construction=False,
WHSV=0.625, # wt./hr per wt. catalyst [1]
catalyst_lifetime=5*7920, # 5 years [1]
catalyst_ID='HC_catalyst',
hydrogen_P=1039.7*6894.76,
hydrogen_rxned_to_inf_oil=0.01125,
hydrogen_excess=5.556,
Expand All @@ -114,9 +118,10 @@ def __init__(self, ID='', ins=None, outs=(), thermo=None,
vessel_material='Stainless steel 316',
vessel_type='Vertical'):

SanUnit.__init__(self, ID, ins, outs, thermo, init_with)
SanUnit.__init__(self, ID, ins, outs, thermo, init_with, include_construction=include_construction)
self.WHSV = WHSV
self.catalyst_lifetime = catalyst_lifetime
self.catalyst_ID = catalyst_ID
self.hydrogen_P = hydrogen_P
self.hydrogen_rxned_to_inf_oil = hydrogen_rxned_to_inf_oil
self.hydrogen_excess = hydrogen_excess
Expand Down Expand Up @@ -155,7 +160,7 @@ def _run(self):
heavy_oil, hydrogen, catalyst_in = self.ins
hc_out, catalyst_out = self.outs

catalyst_in.imass['HC_catalyst'] = heavy_oil.F_mass/self.WHSV/self.catalyst_lifetime
catalyst_in.imass[self.catalyst_ID] = heavy_oil.F_mass/self.WHSV/self.catalyst_lifetime
catalyst_in.phase = 's'
catalyst_out.copy_like(catalyst_in)
# catalysts amount is quite low compared to the main stream, therefore do not consider
Expand Down Expand Up @@ -292,6 +297,8 @@ class Hydrotreating(Reactor):
Weight Hourly Space velocity, [kg feed/hr/kg catalyst].
catalyst_lifetime: float
HT catalyst lifetime, [hr].
catalyst_ID : str
ID of the catalyst.
hydrogen_P: float
Hydrogen pressure, [Pa].
hydrogen_rxned_to_inf_oil: float
Expand Down Expand Up @@ -339,6 +346,7 @@ def __init__(self, ID='', ins=None, outs=(), thermo=None,
init_with='Stream',
WHSV=0.625, # wt./hr per wt. catalyst [1]
catalyst_lifetime=2*7920, # 2 years [1]
catalyst_ID='HT_catalyst',
hydrogen_P=1530*6894.76,
hydrogen_rxned_to_inf_oil=0.046,
hydrogen_excess=3,
Expand Down Expand Up @@ -390,6 +398,7 @@ def __init__(self, ID='', ins=None, outs=(), thermo=None,
SanUnit.__init__(self, ID, ins, outs, thermo, init_with)
self.WHSV = WHSV
self.catalyst_lifetime = catalyst_lifetime
self.catalyst_ID = catalyst_ID
self.hydrogen_P = hydrogen_P
self.hydrogen_rxned_to_inf_oil = hydrogen_rxned_to_inf_oil
self.hydrogen_excess = hydrogen_excess
Expand Down Expand Up @@ -439,7 +448,7 @@ def _run(self):
HT_composition[chemical] /= (1-remove)
HT_composition['PIPERDIN'] = 0

catalyst_in.imass['HT_catalyst'] = biocrude.F_mass/self.WHSV/self.catalyst_lifetime
catalyst_in.imass[self.catalyst_ID] = biocrude.F_mass/self.WHSV/self.catalyst_lifetime
catalyst_in.phase = 's'
catalyst_out.copy_like(catalyst_in)
# catalysts amount is quite low compared to the main stream, therefore do not consider
Expand Down

0 comments on commit 0164999

Please sign in to comment.