1. The problem statement, all variables and given/known data Given a tank filled with gas, you are to pump out a given amount and find the final state of the tank. Given the volume, gas (non-ideal), amount of gas in tank, flow rate, temperature and pressure, all at state 1. We can find density at state 2 from the tables, but we need another quantity. So we can also solve for enthalpy. 2. Relevant equations E_out,mass = [itex]\int h + V/2 + gz dm[/itex] The KE and PE can be neglected due to high flow rate, so the equation simplifies to E_out,mass = [itex]\int h dm[/itex] but since h is not constant I am confused how to integrate this, and find h. 3. The attempt at a solution I am trying to integrate numericaly but am not sure how to approch finding the intermidiate values of h. Thank you for the help.