idaes-pse
idaes-pse copied to clipboard
Incorrect summation in ControlVolume0D for element balance
trafficstars
As noted in #1613 , the expressions elemental_flow_in and elemental_flow_out in the ControlVolume0D incorrectly sum over every component-phase pair, regardless of whether the component is present in the phase or not. The same issue may also be present in the ControlVolume1D. The fix is straightforward, but tests need to be added to verify the issue is fixed.