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 --- 2087/CH12/EX12.9/example12_9.sce | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 2087/CH12/EX12.9/example12_9.sce (limited to '2087/CH12/EX12.9/example12_9.sce') diff --git a/2087/CH12/EX12.9/example12_9.sce b/2087/CH12/EX12.9/example12_9.sce new file mode 100755 index 000000000..b838621b4 --- /dev/null +++ b/2087/CH12/EX12.9/example12_9.sce @@ -0,0 +1,28 @@ + + +//example 12.9 +//calculate depth of downstream cut-off +clc;funcprot(0); +//given +Q=1000; //discharge of river +L=256; //crest length of diversion +f=1.1; //silt factor +seg=1/6; //safe exit gradient +hfl=103; //high flood level +cf=100; //reduced level of downstream concrete floor +H=2.4; //maximum static head of weir +b=40; //length of concrete floor + +q=Q/L; +R=1.35*(q^2/f)^(1/3); +rld=hfl-1.5*R; +d=cf-rld; +d=round(d*100)/100; +mprintf("depth of downstream cut-off=%f m.",d); + +alpha=b/d; +lambda=(1+(1+alpha^2)^0.5)/2; +G=H/(d*%pi*(lambda)^0.5); +//since G