BioSTEAMDevelopmentGroup / Bioindustrial-Park

BioSTEAM's Premier Repository for Biorefinery Models and Results
MIT License
36 stars 17 forks source link

Request for heat utility in molecular sieve #79

Closed zasddsgg closed 8 months ago

zasddsgg commented 1 year ago

Hello, in the source code of the molecular sieve (https://github.com/BioSTEAMDevelopmentGroup/biosteam/blob/master/biosteam/units/molecular_sieve.py), the heat utility of molecular sieve seems to be estimated. Why is the heat utility estimated instead of obtained through strict simulation? In addition, could I consult you how do you get the factor 1429.65 and -55.51 in self.add_heat_utility(1429.65 flow, T) and self.add_heat_utility(-55.51 flow, T) in the source code? Thanks for your help. Wish you a good day.

The source code of molecular sieve is as follows: class MolecularSieve(Splitter): _units = {'Flow rate': 'kg/hr'} def init(self, ID='', ins=None, outs=(), *, order=None, split, P=None, approx_duty=True): Splitter.init(self, ID, ins, outs, order=order, split=split) self.P = None self.approx_duty = approx_duty

def _run(self):
    Splitter._run(self)
    P = self.P
    if P is None: P = self.ins[0].P
    for i in self.outs: i.P = P

def _design(self):
    self.design_results['Flow rate'] = flow = self._outs[1].F_mass
    if self.approx_duty:
        T = self.outs[0].T
        **self.add_heat_utility(1429.65 * flow, T)**
        **self.add_heat_utility(-55.51 * flow, T)**
yoelcortes commented 8 months ago

The code is a preliminary model based on Humbird's results. It is certainly possible to introduce a rigorous model using thermal/pressure swing adsorption. I am not planning on doing this, but you are certainly welcome to do so!