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 /3434/CH8/EX8.3/Ex8_3.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 '3434/CH8/EX8.3/Ex8_3.sce')
-rw-r--r-- | 3434/CH8/EX8.3/Ex8_3.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/3434/CH8/EX8.3/Ex8_3.sce b/3434/CH8/EX8.3/Ex8_3.sce new file mode 100644 index 000000000..63622ccce --- /dev/null +++ b/3434/CH8/EX8.3/Ex8_3.sce @@ -0,0 +1,17 @@ +clc
+// given data
+Voldaily=1200 // daily production in m^3/day
+prodrate=Voldaily/24.0 // gas production rate per hour
+consrate=Voldaily/6.0 //gas consumtion rate per hour
+Vg1=(consrate-prodrate)*2 // gas holder size required for 2 hours in litres
+Vg2=prodrate*9 // gas holder size for 9 hours without consumption in litres
+if Vg1>Vg2
+ Vgmax=Vg1
+else
+ Vgmax=Vg2
+Vg=Vgmax*1.25 // required gas holder with 25 % safety margin in litres
+printf("\n required gas holder size is %.2f litres",Vg)
+Capacity=Vg/Voldaily // required gas holder capacity
+
+printf("\n required gas holder capacity is %.2f %%",Capacity*100)
+
|