Answered step by step
Verified Expert Solution
Question
1 Approved Answer
HW5P3 (15 points) Atmospheric air is a mixture of dry air and water vapor. If the partial pressure of water vapor p exceeds the saturation
HW5P3 (15 points) Atmospheric air is a mixture of dry air and water vapor. If the partial pressure of water vapor p exceeds the saturation vapor pressure ps the air is said to be super-saturated and condensation will likely occur. An approximate formula for ps is: Where Po 6.11 mb (millibars),L-2.5 106 J/kg, Ru-461 J/kg-K and To-273K. a) (3 pts) Write a MATLAB script HW5P3.m which prompts the user to enter the temperature, T (in K) and the water vapor pressure, p (in mb) and computes the saturation vapor pressure ps according to the equation above. b) (6 pts) Write an if-else-structure to determine if the air is under-saturated, super saturated or at saturation with respect to water vapor pressure and print a message to the user as follows: p ps: "The air is under-saturated with relative humidity, rxo.xx8." "The air is saturated with relative humidity r -1008." "The air is super-saturated with relative humidity, rxo.xx% Condensation will occur until r1008." The formula for relative humidity is 100% Ps r c) (6 pts) Use your script for the following parameters: T = 20 C, e = 10 mb T= 30 C, e = 40 mb T=00C, e = 6.11 mb T= 0 C, e 6.109 mb T=0C, e = 6, 11 1 mb b. c. d. e, f. (Hint: For the saturation case, p-ps , don't use "=" but rather incorporate "eps" as a tolerance into your conditional statement, ie, be sure to write your code such that the cases in parts c) are properly reported, ACCOUNTING FOR ROUND-OFF ERROR.)
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