Giter Club home page Giter Club logo

Comments (7)

yoelcortes avatar yoelcortes commented on July 25, 2024 1

Fixed! In addition to this, I also made the following corrections:

  • Made sure vapor outlet of first evaporator is a gas, so now utility costs are more accurate (higher than before).
  • The first effect is model by vapor-liquid equilibrium (more rigorous) and the heat exchanger network can use now integrate heat with the first effect (more savings!).

These two results balance each other out, hopefully results in your biorefinery didn't change too much.

Thanks!

from biosteam.

yalinli2 avatar yalinli2 commented on July 25, 2024 1

Thanks! The problem has been fixed! I did see the changes in results, couldn't recall the exact difference, but didn't seem to be large

Though I want to point out that

That's right, BioSTEAM would first test whether all 5 effects work (even if previously only 3 effects worked).

Thanks!

This doesn't seem to be the case. But I managed to work around this by resetting P to the original design (BioSTEAM changes P to match the number of effects, so the P will be different from the originally designated ones if BioSTEAM reduces the number of effects).

Thanks!!

from biosteam.

yoelcortes avatar yoelcortes commented on July 25, 2024 1

@yalinli2, I found the bug and fixed it:

Changed from:

if self.V_definition == 'Overall':
    P = tuple(self.P)
    self.P = list(P)
    for i in range(self._N_evap-1):
        if self._V_overall(0.) > self.V:
            self.P.pop()
            self.load_components()
        else:
            self.P = P
            break

To:

if self.V_definition == 'Overall':
    P = tuple(self.P)
    self.P = list(P)
    for i in range(self._N_evap-1):
        if self._V_overall(0.) > self.V:
            self.P.pop()
            self.load_components()
        else:
            break
    self.P = P

The code should always run self.P = P (so it resets P to the original value, as you normally do in your work around).

This should do the trick. I'll add a couple of tests eventually.

Thanks!

from biosteam.

yoelcortes avatar yoelcortes commented on July 25, 2024

That's right, BioSTEAM would first test whether all 5 effects work (even if previously only 3 effects worked).

Thanks!

from biosteam.

yoelcortes avatar yoelcortes commented on July 25, 2024

@yalinli2, if you create a test for this, feel free to post it here and I can add it to biosteam's tests (no worries if not). Thanks!

from biosteam.

yalinli2 avatar yalinli2 commented on July 25, 2024

That's right, BioSTEAM would first test whether all 5 effects work (even if previously only 3 effects worked).

Thanks!

This is great, thanks!

Then to my first question that

F_mass=0, F_vol=0, P_suction=evap.outs[0].P,

won't work if there's only one evaporator. Using a slight modified version of MEE's doc:

>>> import biosteam as bst
>>> from biorefineries.cornstover import chemicals
>>> bst.settings.set_thermo(chemicals)
>>> feed = bst.Stream('feed', Water=1000, Glucose=100, 
...                   AceticAcid=0.5, HMF=0.1, Furfural=0.1,
...                   units='kg/hr')
>>> E1 = bst.MultiEffectEvaporator('E1', ins=feed, outs=('solids', 'liquid'), 
...                                V=0.1, V_definition='Overall',
...                                P=(20000,))
>>> E1.simulate()

It will reproduce the error. Thanks!

from biosteam.

yalinli2 avatar yalinli2 commented on July 25, 2024

Yep it did the trick! Thanks!

from biosteam.

Related Issues (20)

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.