EGR_102_Lab_04B_HW - EGR 102 Introduction to Engineering...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
EGR 102 Introduction to Engineering Modeling Lab 04B Homework Part 1. Pressure is a force applied over an area and is measured in Pascal ( N/m 2 ) in metric units or in pounds per square inch, PSI, ( lb f /in 2 ) in English units. Write a MATLAB function that takes as input a pressure in PSI, then converts the value to Pascal, and outputs that value. Use the unit conversions: 1 lb f = 4.448 N and 39.370 in = 1 m Test the function twice in the Command Window using 1,800 lb f /in 2 (Gas powered pressure washer) and 195 lb f /in 2 (Internal Combustion Engine Combustion Chamber Pressure). Part 2 . The pressure P ( Pa ) of an ideal gas in a tank can be calculated from the number of moles of the gas n (k mol ), the volume V ( m 3 ) of the container, and the temperature it is being held at T ( K ) using the equation PV=nRT . The universal gas constant is R = 8.3145 x 10 3 Pa∙m 3 /(K∙kmol) . The gas has a mass m ( kg ), which is related to the number of moles n and the molecular mass M (
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.
Ask a homework question - tutors are online