Question
1. (A)You are to use MatLab to convert from mass fraction to mole fraction, and then calculate the molar average heat capacity of a gas
1. (A)You are to use MatLab to convert from mass fraction to mole fraction, and then calculate the molar average heat capacity of a gas mixture. Note that the average heat capacity is simply the mole fraction of each component multiplied by the heat capacity of that component. You can use the data below for your calculations.
Test your calculations for the following composition (mass fractions): 16% O2, 4% CO, 17% CO2, and 63% N2
(answer: 15% O2, 4.4% CO, 12% CO2, 69% N2 and molar average heat capacity=29.85 J/mol/K).
0% O2, 80% CO, 12% CO2 and 8% N2 (answer: 0% O2, 83.7% CO, 8% CO2, 8.4%N2 and molar average heat capacity= 29.53 J/mol/K).
Species Molecular Weight Heat Capacity (J/mol/K) O2 31.9988 29.1 CO 28.01 28.95 CO2 44.01 36.11 N2 28.0134 29
(B) Using the script you wrote, explore what happens when you make different mistakes. Some mistakes to try: Try to run the script when one of the variables has not been given a value Introduce an error into your script (possibilities: make a typo in an equation you input, mistype a variable name) Anything else you can think of!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started