Skip to content

Commit

Permalink
fix unnecessary sum
Browse files Browse the repository at this point in the history
  • Loading branch information
mimeissner committed Jan 12, 2022
1 parent 4c7a642 commit ef31d9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ThermofluidStream/Boundaries/Internal/PartialVolumeN.mo
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ equation
Xi_in[:,i] = if noEvent(m_flow_in[i]) >= 0 then Medium.massFraction(inlet[i].state) else medium.Xi;
end for;

der(M) = sum(inlet.m_flow) + sum(outlet.m_flow);
der(M) = sum(inlet.m_flow) + outlet.m_flow;
der(U_med) = W_v + Q_flow + sum(inlet.m_flow.*h_in) + outlet.m_flow*h_out;
der(MXi) = Xi_in*inlet.m_flow + Xi_out*outlet.m_flow;

Expand Down

0 comments on commit ef31d9a

Please sign in to comment.