summaryrefslogtreecommitdiff
path: root/3159/CH7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /3159/CH7
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 '3159/CH7')
-rwxr-xr-x3159/CH7/EX7.1/Ex7_1.sce9
-rwxr-xr-x3159/CH7/EX7.1/Ex7_1.txt14
-rwxr-xr-x3159/CH7/EX7.2/Ex7_2.sce8
-rwxr-xr-x3159/CH7/EX7.2/Ex7_2.txt3
-rwxr-xr-x3159/CH7/EX7.3/Ex7_3.sce8
-rwxr-xr-x3159/CH7/EX7.3/Ex7_3.txt3
-rwxr-xr-x3159/CH7/EX7.5/Ex7_5.sce12
-rwxr-xr-x3159/CH7/EX7.5/Ex7_5.txt4
8 files changed, 61 insertions, 0 deletions
diff --git a/3159/CH7/EX7.1/Ex7_1.sce b/3159/CH7/EX7.1/Ex7_1.sce
new file mode 100755
index 000000000..03a44b98e
--- /dev/null
+++ b/3159/CH7/EX7.1/Ex7_1.sce
@@ -0,0 +1,9 @@
+// Find degrees of freedom of a system of two components
+clc
+c = 2 // number of components
+printf("\n Example 7.1")
+for n = 1:4
+ p = (c-1) +2 // Total variables
+ f = c-n+2 // degree of freedom
+ printf("\n\n Degree of freedom for two components when \n number of phases is %d is %d",n,f)
+end
diff --git a/3159/CH7/EX7.1/Ex7_1.txt b/3159/CH7/EX7.1/Ex7_1.txt
new file mode 100755
index 000000000..97d15f7f3
--- /dev/null
+++ b/3159/CH7/EX7.1/Ex7_1.txt
@@ -0,0 +1,14 @@
+
+ Example 7.1
+
+ Degree of freedom for two components when
+ number of phases is 1 is 3
+
+ Degree of freedom for two components when
+ number of phases is 2 is 2
+
+ Degree of freedom for two components when
+ number of phases is 3 is 1
+
+ Degree of freedom for two components when
+ number of phases is 4 is 0 \ No newline at end of file
diff --git a/3159/CH7/EX7.2/Ex7_2.sce b/3159/CH7/EX7.2/Ex7_2.sce
new file mode 100755
index 000000000..b0958caf6
--- /dev/null
+++ b/3159/CH7/EX7.2/Ex7_2.sce
@@ -0,0 +1,8 @@
+// Find minimum number of component in system
+clc
+p = 4 // number of phases of system
+f = 0 // number of degree of system
+
+printf("\n Example 7.2")
+C = f+p-1 // components number
+printf("\n Minimum number of components in system is %d",C)
diff --git a/3159/CH7/EX7.2/Ex7_2.txt b/3159/CH7/EX7.2/Ex7_2.txt
new file mode 100755
index 000000000..5a18d1b0f
--- /dev/null
+++ b/3159/CH7/EX7.2/Ex7_2.txt
@@ -0,0 +1,3 @@
+
+ Example 7.2
+ Minimum number of components in system is 3 \ No newline at end of file
diff --git a/3159/CH7/EX7.3/Ex7_3.sce b/3159/CH7/EX7.3/Ex7_3.sce
new file mode 100755
index 000000000..11c138b41
--- /dev/null
+++ b/3159/CH7/EX7.3/Ex7_3.sce
@@ -0,0 +1,8 @@
+// Calculate amount of pure water that can be extracted from sea water
+clc
+L = 23.3 // % composition of L
+a = 3.5 // concentration of Nacl in sea water
+ice = 0 // % composition of ice
+printf("\n Example 7.3")
+f_ice = (L-a)/(L-ice)
+printf("\n Fractional amount of pure water that can be extracted from sea water is %0.2f",f_ice)
diff --git a/3159/CH7/EX7.3/Ex7_3.txt b/3159/CH7/EX7.3/Ex7_3.txt
new file mode 100755
index 000000000..242be1655
--- /dev/null
+++ b/3159/CH7/EX7.3/Ex7_3.txt
@@ -0,0 +1,3 @@
+
+ Example 7.3
+ Fractional amount of pure water that can be extracted from sea water is 0.85 \ No newline at end of file
diff --git a/3159/CH7/EX7.5/Ex7_5.sce b/3159/CH7/EX7.5/Ex7_5.sce
new file mode 100755
index 000000000..be6fcbb5d
--- /dev/null
+++ b/3159/CH7/EX7.5/Ex7_5.sce
@@ -0,0 +1,12 @@
+// Calculate proeutectoid ferrite and eutectoid ferrite in 0.6% steel
+clc
+a = 0 // limiting value
+b = 0.8 // limiting value
+c = 0.6 // percentage composition of carbon
+f = 0.88 // fraction of ferrite in a eutectoid steel
+printf("\n Example 7.5")
+f_pro_alpha = (b-c)/(b-a)
+f_perlite = 1 - f_pro_alpha
+f_eut = f*f_perlite
+printf("\n Composition of proeutectoid ferrite is %0.2f",f_pro_alpha)
+printf("\n Composition of eutectoid ferrite is %0.2f",f_eut)
diff --git a/3159/CH7/EX7.5/Ex7_5.txt b/3159/CH7/EX7.5/Ex7_5.txt
new file mode 100755
index 000000000..645b1d6f2
--- /dev/null
+++ b/3159/CH7/EX7.5/Ex7_5.txt
@@ -0,0 +1,4 @@
+
+ Example 7.5
+ Composition of proeutectoid ferrite is 0.25
+ Composition of eutectoid ferrite is 0.66 \ No newline at end of file