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 /551/CH4/EX4.20/20.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 '551/CH4/EX4.20/20.sce')
-rwxr-xr-x | 551/CH4/EX4.20/20.sce | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/551/CH4/EX4.20/20.sce b/551/CH4/EX4.20/20.sce new file mode 100755 index 000000000..f6fe8e3d8 --- /dev/null +++ b/551/CH4/EX4.20/20.sce @@ -0,0 +1,25 @@ +clc
+p1=190; //kPa
+V1=0.035; //m^3
+p2=420; //kPa
+V2=0.07; //m^3
+dU=3.6*(p2*V2-p1*V1);
+// p=a+b*v
+// a+0.035*b=190
+// a+0.07*b=420
+// solving the two equations
+p=[1,0.035;1,0.07];
+q=[190;420];
+X=inv(p)*q;
+a=X(1,1);
+b=X(2,1);
+W=integrate('a+b*V', 'V', V1, V2);
+disp("Work done by the system = ")
+disp(W)
+disp("kJ")
+
+
+Q=dU+W;
+disp("Heat transfer into the system = ")
+disp(Q)
+disp("kJ")
\ No newline at end of file |