Question: PLEASE ANSWER IN MATLAB CODE 2. (15 pts) When a liquid mixture is heated, the first bubble of vapor forms at a certain temperature. This
PLEASE ANSWER IN MATLAB CODE


2. (15 pts) When a liquid mixture is heated, the first bubble of vapor forms at a certain temperature. This temperature is called the bubble point. Conversely, when a vapor mixture is cooled, the first dew of liquid forms at a temperature called the dew point. For a mixture of 25 mole percent n-pentane, 45 mole percent n-hexane, and 30 mole percent n-heptane at P = 1.013 bar, we want to find (1) the bubble point and the vapor-phase mole fraction (y;) of each component in the bubbles and (2) the dew point and the liquid-phase mole fraction (x;) of each component in the dews. The mole fractions given above are for the liquid phase (x;) in bubble point calculation and for the vapor phase (y;) in dew point calculation. The components form an ideal mixture, so that y; = 1 and Eq. (3) becomes x;P,"? (T) = y;P, (4) which is known as Raoult's law. The vapor pressure of each component is given by 26799 In P., p = 10.422- RT (component 5 is n-pentane) In Pop = 10.456 29676 (component 6 is n-hexane) RT 35200 In P.vap = 11.431- (component 7 is n-heptane), RT where P is in bar, T is in K, and R = 8.3145 J/(mol-K). To find the bubble point, we solve y=1={xp" (T)/P, ( (5) which is obtained from Eq. (4). To find the dew point, we solve 2x =1=CvP P? (T). (6) i The two temperatures are expected to be around 350 K, which can be used as an initial guess. Once the temperatures are calculated, we can find mole fractions in the dew and the bubble using Eq. (4). Write a script file Final2_YourLastName.m that calculates our desired quantities. 2. (15 pts) When a liquid mixture is heated, the first bubble of vapor forms at a certain temperature. This temperature is called the bubble point. Conversely, when a vapor mixture is cooled, the first dew of liquid forms at a temperature called the dew point. For a mixture of 25 mole percent n-pentane, 45 mole percent n-hexane, and 30 mole percent n-heptane at P = 1.013 bar, we want to find (1) the bubble point and the vapor-phase mole fraction (y;) of each component in the bubbles and (2) the dew point and the liquid-phase mole fraction (x;) of each component in the dews. The mole fractions given above are for the liquid phase (x;) in bubble point calculation and for the vapor phase (y;) in dew point calculation. The components form an ideal mixture, so that y; = 1 and Eq. (3) becomes x;P,"? (T) = y;P, (4) which is known as Raoult's law. The vapor pressure of each component is given by 26799 In P., p = 10.422- RT (component 5 is n-pentane) In Pop = 10.456 29676 (component 6 is n-hexane) RT 35200 In P.vap = 11.431- (component 7 is n-heptane), RT where P is in bar, T is in K, and R = 8.3145 J/(mol-K). To find the bubble point, we solve y=1={xp" (T)/P, ( (5) which is obtained from Eq. (4). To find the dew point, we solve 2x =1=CvP P? (T). (6) i The two temperatures are expected to be around 350 K, which can be used as an initial guess. Once the temperatures are calculated, we can find mole fractions in the dew and the bubble using Eq. (4). Write a script file Final2_YourLastName.m that calculates our desired quantities
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
