summaryrefslogtreecommitdiff
path: root/2420/CH13/EX13.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2420/CH13/EX13.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2420/CH13/EX13.1')
-rwxr-xr-x2420/CH13/EX13.1/13_1.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/2420/CH13/EX13.1/13_1.sce b/2420/CH13/EX13.1/13_1.sce
new file mode 100755
index 000000000..cfeb17b2e
--- /dev/null
+++ b/2420/CH13/EX13.1/13_1.sce
@@ -0,0 +1,19 @@
+clc
+clear
+//Initialization of variables
+
+disp("From mollier diagram from ammonia, values are found")
+disp("part a")
+h1=65 //Btu/lb
+printf("enthalpy in case a = %d Btu/lb",h1)
+h2=99 //Btu/lb
+v2=0.93 //ft^3/lb
+printf("\n In case 2, enthalpy and specific volume are %d Btu/lb and %.2f ft^3/lb respectively",h2,v2)
+h3=583 //Btu/lb
+v3=8.8 //ft^3/lb
+s3=1.275
+printf("\n In case 3, enthalpy, specific volume and entropy are %d Btu/lb, %.2f ft^3/lb and %.3f respectively",h3,v3,s3)
+h4=720 //Btu/lb
+v4=10.4 //ft^3/lb
+s4=1.50
+printf("\n In case 4, enthalpy, specific volume and entropy are %d Btu/lb, %.2f ft^3/lb and %.3f respectively",h4,v4,s4)