Programming Assignment 4
ENGR 3, Summer Session B 2006
Due: Tuesday, September 5 11:59pm
Instructions: Complete the following parts. Turn these programs in using the command: “turnin
[email protected] idealgas.m container.m tank.m aero.m”
Part A (10 points)
Name your script file
idealgas.m
.
Engineers often need to estimate the pressure exerted by a gas in a container. The
ideal gas law
provides one way of making the estimate. The law is
P
=
nRT
V
Equation 1. The ideal gas law
More accurate estimates can be made with the
van der Waals
equation:
P
=
nRT
V
−
nb
−
an
2
V
2
Equation 2. Van der Waals equation
where the term
nb
is a correction for the volume of the molecules, and the term
an
2
/
V
2
is a
correction for molecular attractions. The values of
a
and
b
depend on the type of gas. The gas constant
is
R,
the
absolute
temperature is
T,
the gas volume is
V
This
preview
has intentionally blurred sections.
Sign up to view the full version.

This is the end of the preview.
Sign up
to
access the rest of the document.
- Summer '08
- BEN-YAAKOV
- Following, Trigraph, Christopher Nolan, Van der Waals
-
Click to edit the document details