Answered step by step
Verified Expert Solution
Question
1 Approved Answer
MATLAB HELP Atmospheric air is a mixture of dry air and water vapor. If the partial pressure of water vapor p exceeds the saturation vapor
MATLAB HELP
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: (1-1) Ps (T) = po exp Where Po= 6.11 mb (millibars), L = 2.5 106 J/kg, Ru-461)/kg-K and T0 = 273 K. 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, r xxx.xx8." The air is saturated with relative humidity r 100%." ps The air is super-saturated with relative humidity, r = xxx.xx% Condensation will occur until r 100%." The formula for relative humidity is - 100% Ps c) (6 pts) Use your script for the following parameters: T=10C, e = 40 mb 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=00C, e = 6, 1 1 1 mb a. 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, i.e, 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