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
I was responded:
The H2O compound name works on Windows (using remote=False) but it doesn't work on Linux, even with remote=False. The remote server is Linux as well so it fails when remote=True. You found an OS-specific bug! There may be something with how it is converting to h2o and the upper and lower case names not matching. Could you add this as a bug report on Github? github.com/BYU-PRISM/GEKKO/issues – John Hedengren 16 hours ago
Code example:
# usage: thermo('mw') for constants# thermo('lvp',T) for temperature dependentfromgekkoimportGEKKO, chemicalm=GEKKO()
c=chemical.Properties(m)
# add compoundsc.compound('H2O')
# molecular weightmw=c.thermo('mw')
# liquid vapor pressureT=m.Param(value=310)
vp=c.thermo('lvp',T)
m.solve(disp=False)
print(mw)
print(vp)
The text was updated successfully, but these errors were encountered:
I am working with Gekko's Chemical Library and I am trying to add compounds to my model.
I am trying to add water to my model, but it only works when I call it as 'water', not 'H2O'.
I posted this problem on stackoverflow: https://stackoverflow.com/questions/59002261/how-do-you-determine-what-to-call-a-compound-when-accessing-it-in-gekkos-chemic
I was responded:
The H2O compound name works on Windows (using remote=False) but it doesn't work on Linux, even with remote=False. The remote server is Linux as well so it fails when remote=True. You found an OS-specific bug! There may be something with how it is converting to h2o and the upper and lower case names not matching. Could you add this as a bug report on Github? github.com/BYU-PRISM/GEKKO/issues – John Hedengren 16 hours ago
Code example:
The text was updated successfully, but these errors were encountered: