diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3685/CH4 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '3685/CH4')
-rw-r--r-- | 3685/CH4/EX4.1/Ex4_1.sce | 10 | ||||
-rw-r--r-- | 3685/CH4/EX4.1/Ex4_1.txt | 3 | ||||
-rw-r--r-- | 3685/CH4/EX4.2/Ex4_2.sce | 26 | ||||
-rw-r--r-- | 3685/CH4/EX4.2/Ex4_2.txt | 5 | ||||
-rw-r--r-- | 3685/CH4/EX4.3/Ex4_3.sce | 25 | ||||
-rw-r--r-- | 3685/CH4/EX4.3/Ex4_3.txt | 9 | ||||
-rw-r--r-- | 3685/CH4/EX4.4/Ex4_4.sce | 29 | ||||
-rw-r--r-- | 3685/CH4/EX4.4/Ex4_4.txt | 13 | ||||
-rw-r--r-- | 3685/CH4/EX4.5/Ex4_5.sce | 21 | ||||
-rw-r--r-- | 3685/CH4/EX4.5/Ex4_5.txt | 3 |
10 files changed, 144 insertions, 0 deletions
diff --git a/3685/CH4/EX4.1/Ex4_1.sce b/3685/CH4/EX4.1/Ex4_1.sce new file mode 100644 index 000000000..f60211655 --- /dev/null +++ b/3685/CH4/EX4.1/Ex4_1.sce @@ -0,0 +1,10 @@ +clc
+V1 = 0.3 // Initial volume in m^3
+V2 = 0.15 // Final volume in m^3
+P = 0.105 // Initial Pressure in MPa
+Q = -37.6 // Heat transferred in kJ
+W = P*(V2-V1)*1e6 // Work done
+U = Q*1e3-W // Internal energy change
+printf("\n Example 4.1")
+printf("\n The internal energy of the gas decrease by %f kJ in the process.",abs(U)/1e3)
+
diff --git a/3685/CH4/EX4.1/Ex4_1.txt b/3685/CH4/EX4.1/Ex4_1.txt new file mode 100644 index 000000000..128460bec --- /dev/null +++ b/3685/CH4/EX4.1/Ex4_1.txt @@ -0,0 +1,3 @@ +
+ Example 4.1
+ The internal energy of the gas decrease by 21.850000 kJ in the process.
\ No newline at end of file diff --git a/3685/CH4/EX4.2/Ex4_2.sce b/3685/CH4/EX4.2/Ex4_2.sce new file mode 100644 index 000000000..6fdbe4dc3 --- /dev/null +++ b/3685/CH4/EX4.2/Ex4_2.sce @@ -0,0 +1,26 @@ +clc
+Qacb = 84 // Heat transfer along the path acb in kJ
+Wacb = 32 // Work done along the path acb in kJ
+Uba = Qacb-Wacb // Ub-Ua
+// Part (a)
+Wadb = 10.5 // Work done along the path adb in kJ
+Qadb = Uba+Wadb // Heat flow into the system along the path adb
+printf("\n Example 4.2")
+printf("\n The heat flow into the system along the path adb is %f kJ.",Qadb)
+
+
+// Part (b)
+Wb_a = -21 // work done along the path ba in kJ
+Uab = - Uba // Change in internal energy along the path ab in kJ
+Qb_a = Uab+Wb_a // Heat liberated along the path b-a
+printf("\n The heat liberated along the path b-a is %d kJ.",Qb_a)
+
+// Part (c)
+Wdb = 0 // Constant volume
+Wad = 10.5 // work done along the path ad in kJ
+Wadb = Wdb-Wad // work done along the path adb in kJ
+Ud = 42
+Ua = 0
+Qad = Ud-Ua+Wad // Heat flow into the system along the path ad in kJ
+Qdb = Qadb-Qad //Heat flow into the system along the path db in kJ
+printf("\n The heat absorbed in the path ad and db are %f kJ nd %d kJ respectively.",Qad,Qdb)
diff --git a/3685/CH4/EX4.2/Ex4_2.txt b/3685/CH4/EX4.2/Ex4_2.txt new file mode 100644 index 000000000..097f199f9 --- /dev/null +++ b/3685/CH4/EX4.2/Ex4_2.txt @@ -0,0 +1,5 @@ +
+ Example 4.2
+ The heat flow into the system along the path adb is 62.500000 kJ.
+ The heat liberated along the path b-a is -73 kJ.
+ The heat absorbed in the path ad and db are 52.500000 kJ nd 10 kJ respectively.
\ No newline at end of file diff --git a/3685/CH4/EX4.3/Ex4_3.sce b/3685/CH4/EX4.3/Ex4_3.sce new file mode 100644 index 000000000..47445d284 --- /dev/null +++ b/3685/CH4/EX4.3/Ex4_3.sce @@ -0,0 +1,25 @@ +clc
+// Process a-b
+Qab = 0 // Heat transfer along the path ab in kJ/ min
+Wab = 2170 // Work transfer along the path ab in kJ/min
+Eab = Qab-Wab // Change in internal energy along the path ab in kJ/min
+// Process b-c
+Qbc = 21000 // Heat transfer along the path bc in kJ/ min
+Wbc = 0 // Work transfer along the path bc in kJ/min
+Ebc = Qbc-Wbc // Change in internal energy along the path bc in kJ/min
+// Process c-d
+Qcd = -2100 // Heat transfer along the path cd in kJ/ min
+Ecd = -36600 // Change in internal energy along the path cd in kJ/min
+Wcd = Qcd-Ecd // Work transfer along the path cd in kJ/min
+// Process d-a
+Q = -17000 // Total heat transfer in kJ/min
+Qda = Q-Qab-Qbc-Qcd // Heat transfer along the path da in kJ/ min
+Eda = -Eab-Ebc-Ecd // Change in internal energy along the path da in kJ/min
+Wda = Qda-Eda // Work transfer along the path da in kJ/min
+printf("\n Example 4.3")
+
+M = [Qab Wab Eab ; Qbc Wbc Ebc; Qcd Wcd Ecd; Qda Wda Eda];
+disp(M,"The completed table is:")
+W = Qab+Qbc+Qcd+Qda
+printf("\n Net rate of work output is %f kW",W/60)
+
diff --git a/3685/CH4/EX4.3/Ex4_3.txt b/3685/CH4/EX4.3/Ex4_3.txt new file mode 100644 index 000000000..12bd3b410 --- /dev/null +++ b/3685/CH4/EX4.3/Ex4_3.txt @@ -0,0 +1,9 @@ + Example 4.3
+ The completed table is:
+
+ 0. 2170. - 2170.
+ 21000. 0. 21000.
+ - 2100. 34500. - 36600.
+ - 35900. - 53670. 17770.
+
+ Net rate of work output is -283.333333 kW .
\ No newline at end of file diff --git a/3685/CH4/EX4.4/Ex4_4.sce b/3685/CH4/EX4.4/Ex4_4.sce new file mode 100644 index 000000000..e1e737767 --- /dev/null +++ b/3685/CH4/EX4.4/Ex4_4.sce @@ -0,0 +1,29 @@ +clc
+// Part (a)
+m = 3 // mass of substance in kg
+V1 = 0.22 // Initial volume of system in m^3
+P1 = 500 // Initial pressure of system in kPa
+P2 = 100 // Final pressure of system in kPa
+V2 = V1*(P1/P2)^(1/1.2) // Final volume of system
+dU = 3.56*(P2*V2-P1*V1) // Change in internal energy of substance in kJ/kg
+n = 1.2 // polytropic index
+W = (P2*V2-P1*V1)/(1-n) // work done in process
+Q = dU+W // Heat addition in process
+
+printf("\n Example 4.4")
+printf("\n Part A:")
+printf("\n For the quasi static process is: \n ")
+printf("Q: %fkJ",Q)
+printf("\n dU: %fkJ",dU)
+printf("\n W: %fkJ",W)
+//The provided in the textbook is wrong
+// Part (b)
+printf("\n\n Part B:")
+Qb = 30 // heat transfer in kJ
+Wb = Qb-dU // Work done in kJ
+printf("\n Work transfer for the process is %fkJ.",Wb)
+//The answers vary due to round off error
+// Part (c)
+printf("\n\n Part C:")
+printf("\n Wb is not equal to integral(p*dv) since the process is not quasi static.")
+
diff --git a/3685/CH4/EX4.4/Ex4_4.txt b/3685/CH4/EX4.4/Ex4_4.txt new file mode 100644 index 000000000..99a4d2cd4 --- /dev/null +++ b/3685/CH4/EX4.4/Ex4_4.txt @@ -0,0 +1,13 @@ +
+ Example 4.4
+ Part A:
+ For the quasi static process is:
+ Q: 37.267641kJ
+ dU: -92.133889kJ
+ W: 129.401530kJ
+
+ Part B:
+ Work transfer for the process is 122.133889kJ.
+
+ Part C:
+ Wb is not equal to integral(p*dv) since the process is not quasi static.
\ No newline at end of file diff --git a/3685/CH4/EX4.5/Ex4_5.sce b/3685/CH4/EX4.5/Ex4_5.sce new file mode 100644 index 000000000..70775eda9 --- /dev/null +++ b/3685/CH4/EX4.5/Ex4_5.sce @@ -0,0 +1,21 @@ +clc
+V1 = 0.03 // initial volume in m^3
+P1 = 170 // Initial pressure in kPa
+P2 = 400 // Final pressure in kPa
+V2 = 0.06 // Final volume in m^3
+U = 3.15*(P2*V2-P1*V1) // internal energy in kJ
+B = [P1 P2]'
+A = [1 V1 ; 1 V2]
+x = inv(A)*B
+a = x(1) ; b = x(2)
+function P=pressure(V)
+ P = a+b*V
+endfunction
+W = intg(V1,V2,pressure)
+Q = U+W // heat flow into the system in kJ
+
+printf("\n Example 4.5")
+printf("\n The work done by the system is %f kJ",W)
+printf("\n The heat flow into the system is %f kJ",Q)
+
+
diff --git a/3685/CH4/EX4.5/Ex4_5.txt b/3685/CH4/EX4.5/Ex4_5.txt new file mode 100644 index 000000000..aad10523c --- /dev/null +++ b/3685/CH4/EX4.5/Ex4_5.txt @@ -0,0 +1,3 @@ + Example 4.5
+ The work done by the system is 8.550000 kJ
+ The heat flow into the system is 68.085000 kJ
\ No newline at end of file |