Closed yalinli2 closed 4 years ago
Answering the question to myself after chatting:
Chemical.load_chemical
function to reload from database and erase ALL previous settingsChemical
using copy=True
, but that will be a new chemical. It's OK to have two Chemical
with the same name
In thermosteam, we can lock the phase of a chemical by using the
at_state
function. Assume that I first want to set the chemicalGlucose
at gas phase then liquid phase, looks like I can useat_state(phase, copy=True)
to let me change the phase later, but since the default forcopy
isFalse
, if I forgot to change it, I would have to redefine this chemical. There is alock_phase
function, is there a one for unlocking?Thanks!