summaryrefslogtreecommitdiff
path: root/2339/CH3/EX3.3.1/Ex3_3.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2339/CH3/EX3.3.1/Ex3_3.sce
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 '2339/CH3/EX3.3.1/Ex3_3.sce')
-rwxr-xr-x2339/CH3/EX3.3.1/Ex3_3.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/2339/CH3/EX3.3.1/Ex3_3.sce b/2339/CH3/EX3.3.1/Ex3_3.sce
new file mode 100755
index 000000000..06e8dd6a3
--- /dev/null
+++ b/2339/CH3/EX3.3.1/Ex3_3.sce
@@ -0,0 +1,22 @@
+clear
+clc
+
+P1=2.75*100; //Pressure in kPa
+V1=0.09 //Volume in m^3
+T1=185+273; //Temperature in Kelvin
+T2=15+273;
+R=0.29;
+Cp=1.005;
+Cv=0.715;
+
+m=(P1*V1)/(R*T1);
+V2=(T2/T1)*V1;
+W=P1*(V2-V1);
+printf('The Work Done: %2.3f kJ',W);
+printf('\n');
+Q=m*Cp*(T2-T1);
+printf('The Heat Transfer: %2.3f kJ',Q);
+printf('\n');
+U=Q-W;
+printf('The change in Internal Energy: %2.3f kJ',U);
+printf('\n');