AT Assignment 1-1
AT Assignment 1-1
Assignment # 1
Name: Zohaib Shoukat
Class / section: BSEE(22-26) / A
Problem:
(𝑹𝒐𝒍𝒍 𝑵𝒖𝒎𝒃𝒆𝒓 × 𝑺𝒆𝒄𝒕𝒊𝒐𝒏) × 𝟑 kg of carbon dioxide (CO2) gas is fed to a cylinder
having a volume of 40 m3 and initially containing (𝑹𝒐𝒍𝒍 𝑵𝒖𝒎𝒃𝒆𝒓 × 𝑺𝒆𝒄𝒕𝒊𝒐𝒏) kg of CO2 at
a pressure of 10 bar. Later a pinhole develops and the gas slowly leaks from the cylinder.
(a) Plot the amount of CO2 that has leaked from the cylinder, in kg, versus the specific
volume of the CO2 remaining in the cylinder. Consider whole range of v from maximum
value to zero.
Solve using EES
(b) Assuming CO2 as ideal gas, plot the amount of CO2 that has leaked from the cylinder, in
kg, versus the Pressure of the CO2 in the cylinder. Solve using EES
(c) Assuming CO2 as ideal gas, plot specific volume of gas in cylinder versus the Pressure of
the pressure in the cylinder. Solve using EES
Solution:
Total mass = Initial mass + mass added = (080x1) + (080x1x3) = 80+ 240 = 320 kg
Volume = 40 𝑚3
Pressure after adding CO2 in container = 40 bar
Part # a:
Since we have to plot graph between specific volume and leaked mass, we will give
values of leaked mass and calculate specific volume by following equation:
𝑉𝑜𝑙𝑢𝑚𝑒
(𝐼𝑛𝑖𝑡𝑖𝑎𝑙 𝑚𝑎𝑠𝑠 − 𝑙𝑒𝑎𝑘𝑒𝑑 𝑚𝑎𝑠𝑠)
1|Page
2|Page
EES code:
EES table:
The following is the table made on EES:
3|Page
4|Page
EES graph:
Following graphs was gained when values were stimulated on EES:
Discussion:
Its is noticed from graph leaked mass is increased, then mass in the container decreases
because in denominator (mass-leaked mass). As specific volume is volume per mass remained
in the container, so mass and specified volume have inverse relation then the magnitude of
specific volume will increase by the increase of leaked mass because the fix volume i.e., 40
𝑚3 , will be divided by a smaller number i.e., mass remaining in the container.
5|Page
6|Page
Part # b:
Since we have to plot graph between pressure and leaked mass, we will give values of
leaked mass and calculate pressure by following equation:
Pressure = (Initial mass – leaked mass)
EES code:
Following is code made on EES:
EES table:
The following is the table made on EES:
7|Page
8|Page
EES graph:
Following graphs was gained when values were stimulated on EES:
Discussion:
Its is obvious from graph if leaked mass is increased, it means the mass remaining in
container is decreased. So the increase in leaked mass will decrease mass inside the
container hence pressure decreasing
9|Page
10 | P a g
e
Part # c:
Since we have to plot graph between pressure and specific volume, we will calculate
values of calculate specific by following equation:
𝑉𝑜𝑙𝑢𝑚𝑒
(𝐼𝑛𝑖𝑡𝑖𝑎𝑙 𝑚𝑎𝑠𝑠 − 𝑙𝑒𝑎𝑘𝑒𝑑 𝑚𝑎𝑠𝑠)
And then we will calculate pressure by the equation:
1
𝑠𝑝𝑒𝑐𝑖𝑓𝑖𝑐 𝑣𝑜𝑙𝑢𝑚𝑒
EES code:
Following is code made on EES:
EES table:
The following is the table made on EES:
11 | P a g
e
EES graph:
Following graphs was gained when values were stimulated on EES:
Discussion:
The specific volume will grow as the leaked mass increases, as mentioned in part a, as the mass
inside the container decreases and the material leaking out increases. But as the mass remained in
the container decreases by time, it will decrease the pressure i.e., pressure decreases by the
increase in leaked volume as discussed in part b. Now that we have put all of this information
together, we can say that a gas will decrease pressure inside a container as its specific volume
increases.
12 | P a g
e
13 | P a g
e