summaryrefslogtreecommitdiff
path: root/2507/CH8
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2507/CH8
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2507/CH8')
-rwxr-xr-x2507/CH8/EX8.1/Ex8_1.sce5
-rwxr-xr-x2507/CH8/EX8.10/Ex8_10.sce5
-rwxr-xr-x2507/CH8/EX8.11/Ex8_11.sce5
-rwxr-xr-x2507/CH8/EX8.12/Ex8_12.sce22
-rwxr-xr-x2507/CH8/EX8.13/Ex8_13.sce33
-rwxr-xr-x2507/CH8/EX8.14/Ex8_14.sce21
-rwxr-xr-x2507/CH8/EX8.15/Ex8_15.sce11
-rwxr-xr-x2507/CH8/EX8.16/Ex8_16.sce12
-rwxr-xr-x2507/CH8/EX8.2/Ex8_2.sce14
-rwxr-xr-x2507/CH8/EX8.3/Ex8_3.sce14
-rwxr-xr-x2507/CH8/EX8.4/Ex8_4.sce11
-rwxr-xr-x2507/CH8/EX8.5/Ex8_5.sce5
-rwxr-xr-x2507/CH8/EX8.6/Ex8_6.sce5
-rwxr-xr-x2507/CH8/EX8.7/Ex8_7.sce5
-rwxr-xr-x2507/CH8/EX8.8/Ex8_8.sce5
-rwxr-xr-x2507/CH8/EX8.9/Ex8_9.sce5
16 files changed, 178 insertions, 0 deletions
diff --git a/2507/CH8/EX8.1/Ex8_1.sce b/2507/CH8/EX8.1/Ex8_1.sce
new file mode 100755
index 000000000..45a4a724d
--- /dev/null
+++ b/2507/CH8/EX8.1/Ex8_1.sce
@@ -0,0 +1,5 @@
+clc
+clear
+printf("Example 8.1 | Page number 211 \n\n");
+//This is a theoritical question.Refer textbook for solution
+printf("This is a theoritical question.Refer textbook for solution")
diff --git a/2507/CH8/EX8.10/Ex8_10.sce b/2507/CH8/EX8.10/Ex8_10.sce
new file mode 100755
index 000000000..13830dd0b
--- /dev/null
+++ b/2507/CH8/EX8.10/Ex8_10.sce
@@ -0,0 +1,5 @@
+clc
+clear
+printf("Example 8.10 | Page number 224 \n\n");
+//This is a theoritical question.Refer textbook for solution
+printf("This is a theoritical question.Refer textbook for solution")
diff --git a/2507/CH8/EX8.11/Ex8_11.sce b/2507/CH8/EX8.11/Ex8_11.sce
new file mode 100755
index 000000000..4015fbdd3
--- /dev/null
+++ b/2507/CH8/EX8.11/Ex8_11.sce
@@ -0,0 +1,5 @@
+clc
+clear
+printf("Example 8.11 | Page number 224 \n\n");
+//This is a theoritical question.Refer textbook for solution
+printf("This is a theoritical question.Refer textbook for solution")
diff --git a/2507/CH8/EX8.12/Ex8_12.sce b/2507/CH8/EX8.12/Ex8_12.sce
new file mode 100755
index 000000000..b45206c4c
--- /dev/null
+++ b/2507/CH8/EX8.12/Ex8_12.sce
@@ -0,0 +1,22 @@
+clc
+clear
+printf("Example 8.12 | Page number 225 \n\n");
+//Find the direction fo air flow
+//Given Data
+pA = 120 //kPa //Pressure at location A
+TA = 50+273 //K //Temperature at location A
+VA = 150 //m/s //Velocity at location A
+
+pB = 100 //kPa //Pressure at location B
+TB = 30+273 //K //Temperature at location B
+VB = 250 //m/s //Velocity at location B
+
+Cp = 1.005 //kJ/kg
+R = 0.287 //kJ/kgK
+//Solution
+delta_S_sys = (Cp*log(TB/TA))-(R*log(pB/pA)) //kJ/kgK //Entropy of system
+if delta_S_sys < 0 then
+ printf("Flow is from B to A.");
+else
+ printf("Flow is from A to B.")
+end
diff --git a/2507/CH8/EX8.13/Ex8_13.sce b/2507/CH8/EX8.13/Ex8_13.sce
new file mode 100755
index 000000000..2624417a7
--- /dev/null
+++ b/2507/CH8/EX8.13/Ex8_13.sce
@@ -0,0 +1,33 @@
+clc
+clear
+printf("Example 8.13 | Page number 226 \n\n");
+//Part(a)Temperature of the mixture when ice-water equilibrium.
+//Change in entropy during the process for:
+//Part(b) ice
+//Part(c) water
+//Part(d) universe
+
+//Given Data
+mi = 5 //kg //mass of ice
+Ti = 273 - 10 //K //Temperature of ice
+ci = 2.1 //kJ/kgK //specific heat of ice
+L = 330 //kJ/kg //Latent heat
+mw = 20 //kg //mass of water
+Tw = 273+80 //K //Temperatur of water
+cw = 4.2 //kJ/kgK //specific heat of water
+//Part(a)
+printf("Part (a)\n");
+Tmix = ((mi*ci*(Ti-273))-(L*mi)+(mw*cw*Tw)+(mi*cw*273))/(mw*cw+mi*cw)
+printf("Temperature of the mixture when equilibrium is established between ice and water = %.1f K\n\n",Tmix)
+//Part (b)
+printf("Part (b)\n");
+delta_S_ice = mi*(ci*log(273/Ti)+L/273+cw*log(Tmix/273))//kJ/K //Entropy of ice
+printf("Entropy of ice = %.2f kJ/K\n\n",delta_S_ice)
+//Part (c)
+printf("Part (c)\n");
+delta_S_water = mw*(cw*log(Tmix/Tw))//kJ/K //Entropy of water
+printf("Entropy of water = %.2f kJ/K\n\n",delta_S_water)
+//Part (d)
+printf("Part (d)\n");
+delta_S_uni = delta_S_water+delta_S_ice//kJ/K //Entropy of universe
+printf("Entropy of universe = %.2f kJ/K\n\n",delta_S_uni)
diff --git a/2507/CH8/EX8.14/Ex8_14.sce b/2507/CH8/EX8.14/Ex8_14.sce
new file mode 100755
index 000000000..21d70d27c
--- /dev/null
+++ b/2507/CH8/EX8.14/Ex8_14.sce
@@ -0,0 +1,21 @@
+clc
+clear
+printf("Example 8.14 | Page number 230 \n\n");
+//Find the available and unavailable parts of 100kJ of heat from
+//Part(a) a reservoir at 1000K
+//Part(b) a reservoir at 600K
+
+//Given Data
+Q1 = 100 //kJ //Heat input
+T0 = 300 //K //Surrounding temperature
+
+//Part(a)
+printf("Part (a)\n");
+T1 = 1000 //K //reservoir temperature
+printf("Avalable enery of 100 kJ of heat from a reservoir at 1000K = %.1f kJ\n",Q1*(1-(T0/T1)));
+printf("Unvalable enery of 100 kJ of heat from a reservoir at 1000K = %.1f kJ\n\n",Q1-Q1*(1-(T0/T1)))
+//Part(b)
+printf("Part (b)\n");
+T1 = 600 //K //reservoir temperature
+printf("Avalable enery of 100 kJ of heat from a reservoir at 1000K = %.1f kJ\n",Q1*(1-(T0/T1)));
+printf("Unvalable enery of 100 kJ of heat from a reservoir at 1000K = %.1f kJ\n\n",Q1-Q1*(1-(T0/T1)))
diff --git a/2507/CH8/EX8.15/Ex8_15.sce b/2507/CH8/EX8.15/Ex8_15.sce
new file mode 100755
index 000000000..519b9f699
--- /dev/null
+++ b/2507/CH8/EX8.15/Ex8_15.sce
@@ -0,0 +1,11 @@
+clc
+clear
+printf("Example 8.15 | Page number 231 \n\n");
+//Evaluate the increse in unavailable energy due to irreversible heat transfer
+//Given Data
+T0 = 300 //K //Surrounding temperature
+T1 = 1000 //K //Temperature of final reservoir
+T2 = 600 //K //Temperature of intermediate reservoir
+Q1 = 100 //kJ //Heat input
+//Solution
+printf("Increase in unavaliable energy due to irreversible heat transfer = %.1f kJ",Q1*(1-T0/T1)-Q1*(1-T0/T2))
diff --git a/2507/CH8/EX8.16/Ex8_16.sce b/2507/CH8/EX8.16/Ex8_16.sce
new file mode 100755
index 000000000..3af524aa7
--- /dev/null
+++ b/2507/CH8/EX8.16/Ex8_16.sce
@@ -0,0 +1,12 @@
+clc
+clear
+printf("Example 8.16 | Page number 234 \n\n");
+//What are available and unavailable energies of Q1
+//Given data
+T1 = 500 //K
+T0 = 300 //K
+T2 = 350 //K
+W = 250 //kJ
+Q1 = 1000 //kJ
+printf("Available energy = %.1f kJ\n",(1-(T0/T1))*Q1);
+printf("Unavailable energy = %.1f kJ\n",Q1 - (1-(T0/T1))*Q1);
diff --git a/2507/CH8/EX8.2/Ex8_2.sce b/2507/CH8/EX8.2/Ex8_2.sce
new file mode 100755
index 000000000..55ce3a382
--- /dev/null
+++ b/2507/CH8/EX8.2/Ex8_2.sce
@@ -0,0 +1,14 @@
+clc
+clear
+printf("Example 8.2 | Page number 211 \n\n");
+//Evaluate delta S for the reservoir
+//Given Data
+Q = 10 //kJ //heat transfered from reservoir
+T = 100+273 //K //isothermal expansion temperature
+T_res = 300+273 //K //reservoir temperature
+//Solution
+delta_S_sys = (Q/T) //kJ/K //delta S for the system
+printf("Change in entropy(Delta S) for the system = %.5f kJ/K\n",delta_S_sys);
+
+delta_S_res = -1*(Q/T_res) //kJ/K //delta S for the reservoir
+printf("Change in entropy(Delta S) for the reservoir = %.5f kJ/K\n",delta_S_res);
diff --git a/2507/CH8/EX8.3/Ex8_3.sce b/2507/CH8/EX8.3/Ex8_3.sce
new file mode 100755
index 000000000..56af3fdad
--- /dev/null
+++ b/2507/CH8/EX8.3/Ex8_3.sce
@@ -0,0 +1,14 @@
+clc
+clear
+printf("Example 8.3 | Page number 212 \n\n");
+//Evaluate delta S for the reservoir
+//Given Data
+Q = 10 //kJ //heat transfered from reservoir
+T = 100+273 //K //isothermal expansion temperature
+T_res = 100+273 //K //reservoir temperature
+//Solution
+delta_S_sys = (Q/T) //kJ/K //delta S for the system
+printf("Change in entropy(Delta S) for the system = %.5f kJ/K\n",delta_S_sys);
+
+delta_S_res = -1*(Q/T_res) //kJ/K //delta S for the reservoir
+printf("Change in entropy(Delta S) for the reservoir = %.5f kJ/K\n",delta_S_res);
diff --git a/2507/CH8/EX8.4/Ex8_4.sce b/2507/CH8/EX8.4/Ex8_4.sce
new file mode 100755
index 000000000..b24b6c538
--- /dev/null
+++ b/2507/CH8/EX8.4/Ex8_4.sce
@@ -0,0 +1,11 @@
+clc
+clear
+printf("Example 8.4 | Page number 212 \n\n");
+//Evaluate delta S for the reservoir
+//Given Data
+Q = 1; //kJ //heat transfered from reservoir
+T = 100+273; //K //isothermal expansion temperature
+T_res = 100+273; //K //reservoir temperature
+//Solution
+delta_S_res = -1*(Q/T_res); //kJ/K //delta S for the reservoir
+printf("Change in entropy(Delta S) for the reservoir = %.5f kJ/K\n",delta_S_res);
diff --git a/2507/CH8/EX8.5/Ex8_5.sce b/2507/CH8/EX8.5/Ex8_5.sce
new file mode 100755
index 000000000..d8b5fdb1e
--- /dev/null
+++ b/2507/CH8/EX8.5/Ex8_5.sce
@@ -0,0 +1,5 @@
+clc
+clear
+printf("Example 8.5 | Page number 217 \n\n");
+//This is a theoritical question.Refer textbook for solution
+printf("This is a theoritical question.Refer textbook for solution")
diff --git a/2507/CH8/EX8.6/Ex8_6.sce b/2507/CH8/EX8.6/Ex8_6.sce
new file mode 100755
index 000000000..e6c5da154
--- /dev/null
+++ b/2507/CH8/EX8.6/Ex8_6.sce
@@ -0,0 +1,5 @@
+clc
+clear
+printf("Example 8.6 | Page number 217 \n\n");
+//This is a theoritical question.Refer textbook for solution
+printf("This is a theoritical question.Refer textbook for solution")
diff --git a/2507/CH8/EX8.7/Ex8_7.sce b/2507/CH8/EX8.7/Ex8_7.sce
new file mode 100755
index 000000000..b7066d9fa
--- /dev/null
+++ b/2507/CH8/EX8.7/Ex8_7.sce
@@ -0,0 +1,5 @@
+clc
+clear
+printf("Example 8.7 | Page number 220 \n\n");
+//This is a theoritical question.Refer textbook for solution
+printf("This is a theoritical question.Refer textbook for solution")
diff --git a/2507/CH8/EX8.8/Ex8_8.sce b/2507/CH8/EX8.8/Ex8_8.sce
new file mode 100755
index 000000000..6f8a76c75
--- /dev/null
+++ b/2507/CH8/EX8.8/Ex8_8.sce
@@ -0,0 +1,5 @@
+clc
+clear
+printf("Example 8.8 | Page number 222 \n\n");
+//This is a theoritical question.Refer textbook for solution
+printf("This is a theoritical question.Refer textbook for solution")
diff --git a/2507/CH8/EX8.9/Ex8_9.sce b/2507/CH8/EX8.9/Ex8_9.sce
new file mode 100755
index 000000000..66f5ca503
--- /dev/null
+++ b/2507/CH8/EX8.9/Ex8_9.sce
@@ -0,0 +1,5 @@
+clc
+clear
+printf("Example 8.9 | Page number 223 \n\n");
+//This is a theoritical question.Refer textbook for solution
+printf("This is a theoritical question.Refer textbook for solution")