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 /2417/CH6/EX6.27 | |
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 '2417/CH6/EX6.27')
-rwxr-xr-x | 2417/CH6/EX6.27/Ex6_27.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/2417/CH6/EX6.27/Ex6_27.sce b/2417/CH6/EX6.27/Ex6_27.sce new file mode 100755 index 000000000..bbc038fbc --- /dev/null +++ b/2417/CH6/EX6.27/Ex6_27.sce @@ -0,0 +1,18 @@ +clear;
+clc;
+printf("\t\t\tProblem Number 6.27\n\n\n");
+// Chapter 6: The Ideal Gas
+// Problem 6.27 (page no. 270)
+// Solution
+
+//data given
+T=50+273; //Celsius temperature converted to Kelvin //final temperature //unit:K
+v2=1/2; //Because,v2=(1/2)*v1 //volume increases to its half its final volume
+v1=1;
+R=8.314/32; //moleculer weight of oxygen=32 //Unit:kJ/kg*K //constant of proportionality
+//From the equation, q=((R*T))*log(v2/v1)
+q=R*T*log(v2/v1); //heat added //kJ/kg
+printf("The heat added to system is %f kJ/kg(heat out of system)\n",q);
+//The work out of the system is equal to the heat added;thus,
+W=q; //The work out of the system //unit:kJ/kg
+printf("The work out of the system is %f kJ/kg(into system)\n",W);
|