diff options
Diffstat (limited to '1472/CH16')
-rwxr-xr-x | 1472/CH16/EX16.1.a/16_1a.sce | 22 | ||||
-rwxr-xr-x | 1472/CH16/EX16.1.b/16_1b.sce | 27 | ||||
-rwxr-xr-x | 1472/CH16/EX16.2/16_2.sce | 17 |
3 files changed, 66 insertions, 0 deletions
diff --git a/1472/CH16/EX16.1.a/16_1a.sce b/1472/CH16/EX16.1.a/16_1a.sce new file mode 100755 index 000000000..55ba1eb53 --- /dev/null +++ b/1472/CH16/EX16.1.a/16_1a.sce @@ -0,0 +1,22 @@ +clc
+//initialization of varaibles
+Pb=75 //psia
+Pc=15 //psia
+k=1.4
+Td=550 //R
+Tb=1700 //R
+cp=0.24
+//calculations
+disp("Gas law solution")
+Pratio=Pb/Pc
+Ta=Td*(Pratio)^((k-1)/k)
+Tc=Tb/(Pratio)^((k-1)/k)
+Q1=cp*(Tb-Ta)
+Q2=cp*(Tc-Td)
+Wnet=Q1-Q2
+eta=Wnet/Q1
+eta2=1-Td/Ta
+//results
+printf("Efficiency in 1= %.3f",eta)
+printf("\n Efficiency in 2 = %.2f",eta2)
+printf("\n Work per pound of fluid = %d B/lb",Wnet)
diff --git a/1472/CH16/EX16.1.b/16_1b.sce b/1472/CH16/EX16.1.b/16_1b.sce new file mode 100755 index 000000000..c93f2b63f --- /dev/null +++ b/1472/CH16/EX16.1.b/16_1b.sce @@ -0,0 +1,27 @@ +clc
+//initialization of variables
+Pb=75 //psia
+Pc=15 //psia
+k=1.4
+Td=550 //R
+Tb=1700 //R
+cp=0.24
+//calculations
+Prd=1.4779
+hd=131.46 //B/lb
+Prb=90.95
+hb=422.59 //B/lb
+Pratio=Pb/Pc
+Pra=Pratio*(Prd)
+Ta=868 //R
+ha=208.41
+Prc=Prb/Pratio
+Tc=1113//R
+hc=269.27
+Q1=hb-ha
+Q2=hc-hd
+Wnet=Q1-Q2
+eta=Wnet/Q1
+//results
+printf("Efficiency = %.3f",eta)
+printf("\n Work per pound of fluid = %.2f B/lb",Wnet)
diff --git a/1472/CH16/EX16.2/16_2.sce b/1472/CH16/EX16.2/16_2.sce new file mode 100755 index 000000000..b9336080e --- /dev/null +++ b/1472/CH16/EX16.2/16_2.sce @@ -0,0 +1,17 @@ +clc
+//initialization of varaibles
+e=0.75
+Ta=870 //R
+Tc=1075//R
+cp=0.24
+Td=550 //R
+//calculations
+Tadash=e*(Tc-Ta) +Ta
+Tcdash=Tc+Ta-Tadash
+Q1=cp*(Tb-Tadash)
+Q2=cp*(Tcdash-Td)
+Wnet=Q1-Q2
+eta=Wnet/Q1
+//results
+printf("Net work done = %d B/lb",Wnet)
+printf("\n efficiency = %.2f ",eta)
|