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 /2087/CH2/EX2.5 | |
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 '2087/CH2/EX2.5')
-rwxr-xr-x | 2087/CH2/EX2.5/example2_5.sce | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/2087/CH2/EX2.5/example2_5.sce b/2087/CH2/EX2.5/example2_5.sce new file mode 100755 index 000000000..5a5257f91 --- /dev/null +++ b/2087/CH2/EX2.5/example2_5.sce @@ -0,0 +1,48 @@ +//example 2.5
+//calculate
+//size of cut-back stream.
+//time required for putting 37.5 mm depth of water
+//average depth of water applied
+
+clc;
+//given
+d=37.5//crop water requirement
+W=1//furrow spacing
+L=120//length of furrow
+n=-0.49;
+k=38;
+Ttotal=143;//Total time of irrigation
+A=[0 23 52 88 127]//given values of time of advance
+
+for i=1:5//loop to find respective values of time of ponding
+ B(i)=143-A(i);
+end
+
+
+for j=1:5//loop to find respective furrow infiltration
+ C(j)=B(j)^(n)*k;
+end
+
+
+for K=1:4//loop to find respective average infiltration
+
+ D(K)=(C(K)+C(K+1))/2;
+end
+
+E(1)=D(1);
+for l=2:4//loop to determine cumulative infiltration
+ E(l)=D(l)+E(l-1);
+end
+I=E(4);
+
+T=(30*d*W*(n+1)/k)^(1/(n+1));
+dav=((24.5*Ttotal)+(I*(T-Ttotal)))/L;
+q=((120*37.5)-(24.5*143))/62;
+T=round(T);
+dav=round(dav*10)/10;
+q=round(q*100)/100;
+I=round(I*100)/100;
+mprintf("Maximum size of cut-back stream=%f lpm.",I);
+mprintf("\nMinimum size of cut-back stream=%f lpm.",q);
+mprintf("\nTime required for putting 37.5mm depth of water=%f minutes.",T);
+mprintf("\nAverage depth of water required=%f mm.",dav);
|