summaryrefslogtreecommitdiff
path: root/3821/CH13/EX13.3/Example13_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '3821/CH13/EX13.3/Example13_3.sce')
-rw-r--r--3821/CH13/EX13.3/Example13_3.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3821/CH13/EX13.3/Example13_3.sce b/3821/CH13/EX13.3/Example13_3.sce
new file mode 100644
index 000000000..3117d4673
--- /dev/null
+++ b/3821/CH13/EX13.3/Example13_3.sce
@@ -0,0 +1,21 @@
+////Chapter 13 Steam Engines
+////Example 13.2 Page No 285
+///Find Mean Effective pressure
+///Input data
+clc;
+clear;
+P1=14; //Steam is ssupplied in bar
+P6=6; //Pressure at the end in bar
+Pb=1.2; //Pressure at back in bar
+a=0.1;
+re=4;
+//From hyperbolic process
+b=0.4;
+
+///Calculation
+//Mean Effective pressure in N/m^2
+Pm=P1*((1/re)+((1/re)+a)*log((1+a)/((1+re)+a)))-Pb*((1+b)+(a+b)*log((a+b)/a));
+
+
+//Output
+printf('Mean Effective pressure= %f N/m^2 \n',-Pm);