summaryrefslogtreecommitdiff
path: root/2339/CH3/EX3.41.1/Ex3_41.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.41.1/Ex3_41.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.41.1/Ex3_41.sce')
-rwxr-xr-x2339/CH3/EX3.41.1/Ex3_41.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/2339/CH3/EX3.41.1/Ex3_41.sce b/2339/CH3/EX3.41.1/Ex3_41.sce
new file mode 100755
index 000000000..af0722512
--- /dev/null
+++ b/2339/CH3/EX3.41.1/Ex3_41.sce
@@ -0,0 +1,26 @@
+clc
+clear
+
+//Inputs
+//The Values in the program are as follows:
+//Temperature in Celcius converted to Kelvin(by adding 273)
+//Pressure in bar converted to kPa (by multiplying 100)
+//Volume in m^3
+//Value of R,Cp and Cv in kJ/kg K
+T1=25+273;
+T2=145+273;
+m=2;
+R=267;
+G=1.4;
+Cv=R/(G-1);
+printf('The value of Cv: %3.1f J/kg K',Cv);
+printf('\n');
+Cp=G*Cv;
+printf('The value of Cp: %3.1f J/kg K',Cp);
+printf('\n');
+U=m*Cv*(T2-T1)*(1/1000);
+printf('The change in Internal Energy: %3.1f kJ',U);
+printf('\n');
+H=m*Cp*(T2-T1)*(1/1000);
+printf('The Heat Transfer: %3.1f kJ',H);
+printf('\n');