From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 3434/CH8/EX8.3/Ex8_3.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 3434/CH8/EX8.3/Ex8_3.sce (limited to '3434/CH8/EX8.3/Ex8_3.sce') 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) + -- cgit