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 dependent
from gekko import GEKKO, chemical
m = GEKKO()
c = chemical.Properties(m)
# add compounds
c.compound('H2O')
# molecular weight
mw = c.thermo('mw')
# liquid vapor pressure
T = m.Param(value=310)
vp = c.thermo('lvp',T)
m.solve(disp=False)
print(mw)
print(vp)
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: