summaryrefslogtreecommitdiff
path: root/172/CH4/EX4.3/ex3.sce
diff options
context:
space:
mode:
Diffstat (limited to '172/CH4/EX4.3/ex3.sce')
-rwxr-xr-x172/CH4/EX4.3/ex3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/172/CH4/EX4.3/ex3.sce b/172/CH4/EX4.3/ex3.sce
new file mode 100755
index 000000000..8c7f5faf8
--- /dev/null
+++ b/172/CH4/EX4.3/ex3.sce
@@ -0,0 +1,15 @@
+//example 3
+//work produced
+clear
+clc
+Psat=190.2 //in kPa
+P1=Psat //saturation pressure in state 1
+vf=0.001504 //in m^3/kg
+vfg=0.62184 //in m^3/kg
+x1=0.25 //quality
+v1=vf+x1*vfg //specific volume at state 1 in m^3/kg
+v2=1.41*v1 //specific volume at state 2 in m^3/kg
+P2=600 //pressure in state 2 in kPa
+m=0.5 //mass of ammonia in kg
+W=m*(P1+P2)*(v2-v1)/2 //woork produced by ammonia in kJ
+disp('hence,work produced by ammonia is 12.71 kJ') \ No newline at end of file