Solve the below problem:
Q: A piston cylinder contains 1 kg water at 20oC with a constant load on the piston such that the pressure is 250 kPa. A nozzle in a line to the cylinder is opened to enable a flow to the outside atmosphere at 100 kPa. The process continues to half the mass has flowed out and there is no heat transfer. Assume constant water temperature and find the exit velocity and total work done in the process.