0% found this document useful (0 votes)
69 views8 pages

Print Prelim

This document appears to be a report submitted for a preliminary exam in chemical engineering. It includes the program code and results from solving 4 problems each in physical chemistry, fluid mechanics, and thermodynamics. The student entered parameters into the program, received outputs for various engineering calculation problems, and had the option to continue or end the program.

Uploaded by

amielyn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
69 views8 pages

Print Prelim

This document appears to be a report submitted for a preliminary exam in chemical engineering. It includes the program code and results from solving 4 problems each in physical chemistry, fluid mechanics, and thermodynamics. The student entered parameters into the program, received outputs for various engineering calculation problems, and had the option to continue or end the program.

Uploaded by

amielyn
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

PRELIM EXAM

Course: CHE 508 Laboratory Exercise No.: 3


Group No.: Section:
Group Members: Date Performed: August 8, 2018
FLORA, KRISLYNNE RENZELLE J. Date Submitted: August 8, 2018
Instructor:
Engr. Crispulo Maranan
1. Program
clc;
check = 0;
while check == 0;
disp('PROBLEMS IN CHEMICAL ENGINEERING');
disp('TOPICS:');
choose = input('\n 1. Physical Chemistry \n 2. Fluid Mechanics \n 3. Thermodynamics \n\n Choose from 1 - 3: ');
switch(choose);
case 1;
clc;
disp('Problems in Physical Chemistry.');
choose1 = input('\n 1. Problem 1 \n 2. Problem 2 \n 3. Problem 3 \n 4. Problem 4 \n Choose from 1 - 4: ');
switch(choose1);
case 1;
clc;
disp('A certain gas occupies a volume of 6 liters under a pressure of 720 mmHg at 25 degrees C. What volume will this gas
occupy under standard conditions of temperature and pressure?');
V1 = input('Enter the volume of gas in L: ');
P1 = input('Enter the initial pressure in mmHg: ');
T1 = input('Enter the initial temperature in K: ');
V2 = (P1*V1*273.15)/(760*T1);
fprintf('The answer is %0.2f L.', V2);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('')
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 2;
clc;
disp('Calculate the concentration in mole per liter of an ideal gas at 298.15 K and at 101325 kPa.');
P = input('Enter the pressure in atm: ');
T = input('Enter the temperature in K: ');
V = input('Enter the volume in L: ');
R = 0.08205;
C = P/(R*T);
fprintf('The answer is %0.2f mol/L.', C);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 3;
clc;
disp('Find the density of ammonia gas at 100 degrees C when confined by a pressure of 1600 mmHg.');
T = input('Enter the temperature in K: ');
P = input('Enter the pressure in mmHg: ');
m = 17;
R = 0.08205;
D = (P/760*m)/(R*T);
fprintf('The answer is %0.2f g/L.', D);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 4;
clc;
disp('What is the kinetic energy of translation in cal of 2 moles of a perfect gas at 27 degrees C?');
n = input('Enter the number of mole: ');
T = input('Enter the temperature in K: ');
R = 1.987;
K = 1.5*n*R*T;
fprintf('The answer is %0.2f cal.', K);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end

end
case 2;
clc;
disp('Problems in Fluid Mechanics.');
choose1 = input('\n 1. Problem 1 \n 2. Problem 2 \n 3. Problem 3 \n 4. Problem 4 \n Choose from 1 - 4: ');
switch(choose1);
case 1;
clc;
disp('A barometer to measure absolute pressure shows a mercury column height of 725 mm. The temperature is such that the
density of the mercury is 13,550 kg/m3. Find the ambient pressure.');
L = input('Enter the height in meters: ');
D = input('Enter the density in kg/m3: ');
g = 9.81;
P = D*L*g/1000;
fprintf('The answers are %0.2f kPa', P);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 2;
clc;
disp('Blue manometer fluid of density 925 kg/m3 shows a column height difference of 6 cm vacuum with one end attached to a
pipe and the other open to P0 = 101 kPa. What is the absolute pressure in the pipe?');
D = input('Enter the density in kg/m3: ');
h = input('Enter the height in m: ');
g = 9.81;
dP = D*g*h/1000;
P = 101325 - dP;
fprintf('The answer is %0.2f kPa', P);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 3;
clc;
disp('In the city water tower, water is pumped up to a level 25 m above ground in a pressurized tank with air at 125 kPa over the
water surface. Assuming the water density is 1000 kg/m3 and standard gravity, find the pressure required to pump more water in
at ground level.');
h = input('Enter the height in m: ');
Pt = input('Enter the pressure on top in kPa: ');
g = 9.81;
dP = (1000*h*g)/1000;
Pb = Pt + dP;
fprintf('The answer is %0.2f kPa', Pb);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 4;
clc;
disp('A barometer measures 760 mmHg at street level and 735 mmHg on top of a building. How tall is the building if we assume
air density of 1.15 kg/m3?');
Pt = input('Enter the pressure on top in mmHg: ');
Pb = input('Enter the pressure at the bottom in mmHg: ');
D = input('Enter the density in kg/m3: ');
g = 9.81;
H = (Pb - Pt)*133.32/(D*g);
fprintf('The answers is %0.2f m', H);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
end
case 3;
clc;
disp('Problems in Thermodynamics.');
choose1 = input('\n 1. Problem 1 \n 2. Problem 2 \n 3. Problem 3 \n 4. Problem 4 \n Choose from 1 - 4: ');
switch(choose1);
case 1;
clc;
disp('Air at 35 degrees C, 105 kPa, flows in a 100 mm × 150 mm rectangular duct in a heating system. The volumetric flow rate
is 0.015 m3/s. What is the velocity of the air flowing in the duct and what is the mass flow rate?');
T = input('Enter the temperature in degrees Kelvin: ');
P = input('Enter the pressure in kPa: ');
L = input('Enter the length of rectangular duct in meters: ');
w = input('Enter the width of rectangular duct in meters: ');
V = input('Enter the volumetric flow rate in m3/s: ');
R = 0.287;
A = L * w;
vel = V/A;
vol = R*T/P;
m = V/vol;
fprintf('The answers are %0.4f m/s and %0.4f kg/s', vel, m);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 2;
clc;
disp('Nitrogen gas flows into a convergent nozzle at 200 kPa, 400 K and very low velocity. It flows out of the nozzle at 100 kPa,
330 K. If the nozzle is insulated find the exit velocity.');
T1 = input('Enter the inlet temperature in K: ');
T2 = input('Enter the outlet temperature in K: ');;
Cp = 1.042;
V = sqrt((2 * 1.042 * (T1 - T2)) * 1000);
fprintf('The answer is %0.2f m/s', V);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 3;
clc;
disp('Air flows into a diffuser at 300 m/s, 300 K and 100 kPa. At the exit the velocity is very small but the pressure is high. Find
the exit temperature assuming zero heat transfer.');
V = input('Enter the velocity in m/s: ');
T1 = input('Enter the temperature in K: ');
P = input('Enter the pressure in kPa: ');
T2 = T1 + ((0.5*(V^2))/1004);
fprintf('The answer is %0.2f K', T2);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
case 4;
clc;
disp('Calculate the thermal efficiency of a Carnot cycle heat engine operating between reservoirs at 300 degrees C and 45
degrees C');
Th = input('Enter the maximum temperature in degrees C: ');
Tc = input('Enter the minimum temperature in degrees C: ');
n = 1 - ((Tc + 273.15)/(Th + 273.15));
fprintf('The answer is %0.2f', n);
choose2 = input('\n Do you want to continue? \n 1. Yes \n 2. No \n Choose 1 or 2: ');
switch(choose2);
case 1;
disp('');
case 2;
check = check + 1;
disp('Thank you! Goodbye!');
end
end
end
end
2. Data and Results:
Momentum Transfer
Problem Results
1 A barometer to measure absolute pressure shows a mercury column height of 725 mm.
The temperature is such that the density of the mercury is 13,550 kg/m3. Find the ambient
pressure.
Enter the height in meters: 0.725
Enter the density in kg/m3: 13550
The answers are 96.37 kPa
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
2 Blue manometer fluid of density 925 kg/m3 shows a column height difference of 6 cm
vacuum with one end attached to a pipe and the other open to P0 = 101 kPa. What is the
absolute pressure in the pipe?
Enter the density in kg/m3: 925
Enter the height in m: 0.06
The answer is 101324.46 kPa
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
3 In the city water tower, water is pumped up to a level 25 m above ground in a pressurized
tank with air at 125 kPa over the water surface. Assuming the water density is 1000 kg/m3
and standard gravity, find the pressure required to pump more water in at ground level.
Enter the height in m: 25
Enter the pressure on top in kPa: 125
The answer is 370.25 kPa
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
4 A barometer measures 760 mmHg at street level and 735 mmHg on top of a building. How
tall is the building if we assume air density of 1.15 kg/m3?
Enter the pressure on top in mmHg: 735
Enter the pressure at the bottom in mmHg: 760
Enter the density in kg/m3: 1.15
The answer is 295.44 m
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
Thermodynamics
Problem Results
1 Air at 35 degrees C, 105 kPa, flows in a 100 mm × 150 mm rectangular duct in a heating
system. The volumetric flow rate is 0.015 m3/s. What is the velocity of the air flowing in
the duct and what is the mass flow rate?
Enter the temperature in degrees Kelvin: 308.15
Enter the pressure in kPa: 105
Enter the length of rectangular duct in meters: 0.1
Enter the width of rectangular duct in meters: 0.15
Enter the volumetric flow rate in m3/s: 0.015
The answers are 1.0000 m/s and 0.0178 kg/s
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
2 Nitrogen gas flows into a convergent nozzle at 200 kPa, 400 K and very low velocity. It
flows out of the nozzle at 100 kPa, 330 K. If the nozzle is insulated find the exit velocity.
Enter the inlet temperature in K: 400
Enter the outlet temperature in K: 330
The answer is 381.94 m/s
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
3 Air flows into a diffuser at 300 m/s, 300 K and 100 kPa. At the exit the velocity is very
small but the pressure is high. Find the exit temperature assuming zero heat transfer.
Enter the velocity in m/s: 300
Enter the temperature in K: 300
Enter the pressure in kPa: 100
The answer is 344.82 K
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
4 Calculate the thermal efficiency of a Carnot cycle heat engine operating between
reservoirs at 300 degrees C and 45 degrees C
Enter the maximum temperature in degrees C: 300
Enter the minimum temperature in degrees C: 45
The answer is 0.44
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
Physical Chemistry
Problem Results
1 A certain gas occupies a volume of 6 liters under a pressure of 720 mmHg at 25 degrees
C. What volume will this gas occupy under standard conditions of temperature and
pressure?
Enter the volume of gas in L: 6
Enter the initial pressure in mmHg: 720
Enter the initial temperature in K: 298
The answer is 5.21 L.
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
2 Calculate the concentration in mole per liter of an ideal gas at 298.15 K and at 101325
kPa.
Enter the pressure in atm: 1
Enter the temperature in K: 298.15
Enter the volume in L: 1
The answer is 0.04 mol/L.
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
3 Find the density of ammonia gas at 100 degrees C when confined by a pressure of 1600
mmHg.
Enter the temperature in K: 373.15
Enter the pressure in mmHg: 1600
The answer is 1.17 g/L.
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:
4 What is the kinetic energy of translation in cal of 2 moles of a perfect gas at 27 degrees
C?
Enter the number of mole: 2
Enter the temperature in K: 300.15
The answer is 1789.19 cal.
Do you want to continue?
1. Yes
2. No
Choose 1 or 2:

You might also like