summaryrefslogtreecommitdiff
path: root/2417/CH2/EX2.14/Ex2_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '2417/CH2/EX2.14/Ex2_14.sce')
-rwxr-xr-x2417/CH2/EX2.14/Ex2_14.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/2417/CH2/EX2.14/Ex2_14.sce b/2417/CH2/EX2.14/Ex2_14.sce
new file mode 100755
index 000000000..93bdb57a5
--- /dev/null
+++ b/2417/CH2/EX2.14/Ex2_14.sce
@@ -0,0 +1,16 @@
+clear;
+clc;
+printf("\t\t\tProblem Number 2.14\n\n\n");
+// Chapter 2: Work, Energy, and Heat
+// Problem 2.14 (page no. 78)
+// Solution
+
+//It is necessary that pressure be expressed as psfa when the volume is in cubic feet
+//100 psia = 100*144 psfa
+p1=100*144; //Unit:psfa //initial pressure
+v1=2; //Unit:ft^3/lb //Initial Specific Volume
+v2=1; //Unit:ft^3/lb //Final Specific Volume
+w=p1*v1*log(v2/v1); //work done on fluid //Unit:ft*lbf/lbm
+printf("Work done on fluid = %f ft*lbf/lb\n",w);
+//1 Btu = 778 ft*lbf
+printf("Work done on the fluid per pound of fluid is %f Btu/lbm",w/778);