You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@emilypl2 and I ran into a problem when running the lactic acid module with biosteam's BoilerTurbogenerator. Essentially a very small negative value (to 10-15) was calculated for H_electricity:
I locally inserted a line H_electricity = 0 if abs(H_electricity)<1e-6 else H_electricity to temporarily fix it for now, but not sure if it's good for a permanent fix, thanks!
The text was updated successfully, but these errors were encountered:
The temporary fix confuses the solver. I added some code to handle this special case. I am not able to test it, but I believe it should fix your issue:
@emilypl2 and I ran into a problem when running the lactic acid module with biosteam's
BoilerTurbogenerator
. Essentially a very small negative value (to 10-15) was calculated forH_electricity
:biosteam/biosteam/facilities/_boiler_turbogenerator.py
Line 334 in e2db475
which led to negative work and error in decorated cost calculation:
biosteam/biosteam/units/decorators/_cost.py
Line 152 in e2db475
I locally inserted a line
H_electricity = 0 if abs(H_electricity)<1e-6 else H_electricity
to temporarily fix it for now, but not sure if it's good for a permanent fix, thanks!The text was updated successfully, but these errors were encountered: