summaryrefslogtreecommitdiff
path: root/479/CH3/EX3.2
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /479/CH3/EX3.2
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 '479/CH3/EX3.2')
-rwxr-xr-x479/CH3/EX3.2/Example_3_2.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/479/CH3/EX3.2/Example_3_2.sce b/479/CH3/EX3.2/Example_3_2.sce
new file mode 100755
index 000000000..2e7c14f6b
--- /dev/null
+++ b/479/CH3/EX3.2/Example_3_2.sce
@@ -0,0 +1,19 @@
+//Chemical Engineering Thermodynamics
+//Chapter 3
+//First Law of Thermodynamics
+
+//Example 3.2
+clear;
+clc;
+
+//Given
+n = 1;//kg moles of a gas
+Cv = 5;//specific heat in Kcal/Kgmole
+delT = 15;//increase in temperature in deg celsius
+
+//To calculate the change in internal energy
+Q = n*Cv*delT;//heat given to the system in Kcal
+W = 0;//work done
+delE = Q-W;//Change in internal energy
+mprintf('Change in internal energy is %f Kcal',delE);
+//end \ No newline at end of file