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 /2870/CH4/EX4.9/Ex4_9.sce | |
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 '2870/CH4/EX4.9/Ex4_9.sce')
-rwxr-xr-x | 2870/CH4/EX4.9/Ex4_9.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/2870/CH4/EX4.9/Ex4_9.sce b/2870/CH4/EX4.9/Ex4_9.sce new file mode 100755 index 000000000..a7855cc96 --- /dev/null +++ b/2870/CH4/EX4.9/Ex4_9.sce @@ -0,0 +1,24 @@ +clc;clear;
+//Example 4.9
+
+//given data
+V1=0.5;
+P=400;
+T1=27;
+I=2;
+t=5*60;//converting into s from min
+V=120;
+Qout=2800/1000;//in kJ
+R=0.297;
+
+//from Table A–2a
+Cp=1.039;
+
+//calculations
+P1=P;
+We=V*I*t/1000;//in kJ
+m=P1*V1/(R*(T1+273));
+//Ein - Eout = Esystem
+// We,in - Qout = dH = m (h2 - h1) = m * Cp * (T2 - T1)
+T2=(We-Qout)/(m*Cp)+T1;
+disp(T2,'the final temperature of nitrogen in C')
|