One Dimensional Two Phase Flow Calculation