diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /1919/CH1/EX1.6 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '1919/CH1/EX1.6')
-rwxr-xr-x | 1919/CH1/EX1.6/Ex1_6.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1919/CH1/EX1.6/Ex1_6.sce b/1919/CH1/EX1.6/Ex1_6.sce new file mode 100755 index 000000000..004db9104 --- /dev/null +++ b/1919/CH1/EX1.6/Ex1_6.sce @@ -0,0 +1,18 @@ +// Theory and Problems of Thermodynamics
+// Chapter 1
+// Basic Concepts
+// Example 6
+
+clear ;clc;
+
+//Given data
+X_O = 0.21 // X_O = molefraction of oxygen
+X_N = 0.79 // X_N = molefraction of nitrogen
+mw_O = 32 // mw_O = molecular mass of oxygen
+mw_N = 28 // mw_N = molecular mass of nitrogen
+
+//Calculate mass of 1 kmol air
+m = X_O * mw_O + X_N * mw_N; //mass of 1 kmol air
+
+// Results
+mprintf('Mass of 1 kmol air = %5.2f kg', m)
|