idaes-pse
idaes-pse copied to clipboard
Fix state estimation in control volumes
trafficstars
Presently, the ControlVolume0D and ControlVolume1D are set up, by default, to copy states from the inlet stream to the outlet stream only if the state variables are uninitialized, meaning they have a value of None. However, almost every single property package adds an initial value for state variables, meaning that the state variables are almost never copied. This problem should be addressed by changing the default behavior from always_estimate=False to always_estimate=True. If the user or unit model initialization method provides a better initial value for properties than the outlet properties, then the user or unit model initialization method should specify always_estimate=False.