In the following given problem, i need to construct a logical algorithm (Matlab codes/functions) or excel sheet to acquire from an adiabatic reservoir filling process the following:
1)Final mass introduced to a reservoir Temperature of a pure substance and its vapor/liquid compositions (a & b)(Given the reservoir final volume, and the final pressure) (a reference state might need to be added to acquire the final results hence U,G and H are needed to obtain the result)
2) Same thing but for a mixture