Comments (7)
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.
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.
@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.
That's right, BioSTEAM would first test whether all 5 effects work (even if previously only 3 effects worked).
Thanks!
from biosteam.
@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.
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
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.
Yep it did the trick! Thanks!
from biosteam.
Related Issues (20)
- High CAPEX cost at low pumping rates HOT 4
- Small error in `BoilerTurbogenerator` design cause negative work/cost HOT 2
- Negative water flows in permeate of AnMBR in high-rate WWT system HOT 4
- Notice: Moving to Python 3.11 in October
- AttributeError: 'Stream' object has no attribute 'indices' HOT 1
- Kinetic model does not take 't' into account HOT 1
- Unable to get graphic data like Diagrams and graphs HOT 1
- numba inlines biosteam.CE value into compiled code HOT 4
- Better batch design HOT 3
- Power consumption default in AeratedBioReactor needs more detail HOT 2
- Biogas upgrading HOT 1
- Depreciable capital in NPV calculation HOT 24
- Valve node has no label
- Unit z_mol_in and z_mol_out properties don't work
- Compressor type and adding Cooling Agent HOT 15
- Implement Blower as a Compressor type
- Include special-case utilities in utility worksheet.
- Sub class modelling of CSTR HOT 1
- Reactor duty for sub class modelling of CSTR
- Minor issues with high-rate WWT HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biosteam.