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
(
This is the end of the preview. Sign up
to
access the rest of the document.
 Fall '08
 HINDS
 Mass, command window

Click to edit the document details