The general balance equation is as follow: d[m{u+gz+v2/2)sys=(u+gz+v2/2)dmin-(u+gz+v2/2)dmout +dq+dw.
I understand that I would take in consideration the cross sectional area as well as the mass flow rate. However I can't figure out what else to consider as if atm pressure should be considered...