"; echo " onlinechannel01:    *** Error message 1 ***    Please enter only positive number for discharge.   Execution stops here. "; echo "
"; die; } // branch 202 close } // branch 201 close if($_POST["manningsn"] <= 0) { // branch 203 open if($_POST["Submit"] == 'Calculate') { // branch 204 open echo "





"; echo " onlinechannel01:    *** Error message 2 ***    Please enter only positive number for manning's n.   Execution stops here. "; echo "
"; die; } // branch 204 close } // branch 203 close if($_POST["bottomslope"] <= 0) { // branch 205 open if($_POST["Submit"] == 'Calculate') { // branch 206 open echo "





"; echo " onlinechannel01:    *** Error message 3 ***    Please enter only positive number for bottom slope.   Execution stops here. "; echo "
"; die; } // branch 206 close } // branch 205 close if($_POST["bottomwidth"] < 0) { // branch 207 open if($_POST["Submit"] == 'Calculate') { // branch 208 open echo "





"; echo " onlinechannel01:    *** Error message 4 ***    Please enter only nonnegative number for bottom width.   Execution stops here. "; echo "
"; die; } // branch 208 close } // branch 207 close if($_POST["sideslope"] < 0) { // branch 209 open if($_POST["Submit"] == 'Calculate') { // branch 210 open echo "





"; echo " onlinechannel01:    *** Error message 5 ***    Please enter only nonnegative number for side slope.   Execution stops here. "; echo "
"; die; } // branch 210 close } // branch 209 close if(($_POST["bottomwidth"] == 0) && ($_POST["sideslope"] == 0)) { // branch 211 open if($_POST["Submit"] == 'Calculate') { // branch 212 open echo "





"; echo " onlinechannel01:    *** Error message 6 ***    Bottom width and side slope cannot be zero at the same time.   Execution stops here. "; echo "
"; die; } // branch 212 close } // branch 211 close // end of check for input errors or inconsistencies //set unit systems $unitsystems = 0; // default value if(isset($_POST["unitsystems"])) { // branch 301 open $unitsystems = $_POST["unitsystems"]; } // branch 301 close if ($unitsystems == 1) { // branch 302 open $g= 32.17; $c= 1.486; $lengthunits = "ft"; $areaunits = "ft2"; $velocityunits = "fps"; $dischargeunits = "cfs "; $accelerationunits = "ft s-2"; $unitsystemsname = "U.S. Customary"; } // branch 302 close elseif($unitsystems == 0) { // branch 303 open $g = 9.806; $c = 1.0; $lengthunits = "m"; $velocityunits = "m s-1"; $areaunits = "m2"; $dischargeunits = "m3 s-1"; $accelerationunits = "m s-2"; $unitsystemsname = "SI (metric)"; } // branch 303 close //main calculations $iflag= 0.; $kflag= 0.; $tol= 0.0001; $x = 0.; $dx = 1.; $q = $_POST["discharge"]; $b = $_POST["bottomwidth"]; $z = $_POST["sideslope"]; $s = $_POST["bottomslope"]; $xn = $_POST["manningsn"]; //main while loops while($kflag == 0) { // branch 401 open $y = + pow(($x*(0.5*$b + 0.5*$z*$x)),2.5) - pow(($q*$xn/(2*$c*pow($s,0.5))),1.5)*pow((1 + pow($z,2)),0.5)*$x - 0.5*pow(($q*$xn/(2*$c*pow($s,0.5))),1.5)*$b; $jflag = 0; while($jflag == 0) { // branch 402 open if($y < 0.) { // branch 403 open $x = $x + $dx; $jflag = 1; } // branch 403 close else { // branch 404 open while($iflag == 0) { // branch 405 open $y = + pow(($x*(0.5*$b + 0.5*$z*$x)),2.5) - pow(($q*$xn/(2*$c*pow($s,0.5))),1.5)*pow((1 + pow($z,2)),0.5)*$x - 0.5*pow(($q*$xn/(2*$c*pow($s,0.5))),1.5)*$b; $yp = + 1.25*$z*pow($x,2.5)*pow((0.5*$b + 0.5*$z*$x),1.5) + 2.5*pow($x,1.5)*pow((0.5*$b + 0.5*$z*$x),2.5) - pow(($q*$xn/(2*$c*pow($s,0.5))),1.5)*pow((1 + pow($z,2)),0.5); $xr = $x - $y/$yp; if(abs($xr - $x) < $tol) { // branch 406 open $iflag= 1; $jflag= 1; $kflag= 1; } // branch 406 close $x = $xr; } // branch 405 close } // branch 404 close } // branch 402 close } // branch 401 close //redefine output $yn = $x; $an = ($b + $z*$yn)*$yn; $pn = $b + 2*$yn*pow((1 + pow($z,2)),0.5); $tn = $b + 2*$z*$yn; $rn = $an/$pn; $vn = $q/$an; $dn = $an/$tn; $fn = $vn/(pow(($g*$dn),0.5)); } // branch 101 close //--------------------------------------------------------------------------------------------------------------------------------------------------------------- ?>



     onlinechannel01.php:   Normal depth in a prismatic channel

Definition sketch for a prismatic channel
Formulas:


A = y(b + zy)
P = b + 2y(1 + z2)1/2
T = b + 2zy
R = A/P
D = A/T
Q = (k/n) AR2/3S1/2
V = Q/A
F = V/(gD)1/2

INPUT DATA:

Select:   

Flow discharge Q:        

Bottom width b:        

Side slope z:      

Bottom slope S:      

Manning's n:      

INTERMEDIATE CALCS:

Units selected:   

Gravitational acceleration g:   

Units constant k:   

Wetted perimeter P:   

Top width T:   

Flow area A:   

Hydraulic radius R:   

Hydraulic depth D:   

OUTPUT:

Normal flow depth yn:   

Normal flow velocity Vn:   

Normal Froude number Fn:   


            

  Your request was processed at "; echo " "; echo date('h:i:s a \o\n F jS, Y'); ?>    [  ].


Thank you for running onlinechannel_01.   Please call again.   [130711]

Count 

online calc
normal depth critical depth normal and critical depth discharge in channel critical slope
normal depth in culvert critical depth in culvert discharge in culvert discharge sluice discharge weir
M1 wsprofile M2 wsprofile M3 wsprofile S1 wsprofile S2 wsprofile S3 wsprofile
C1 wsprofile H2 wsprofile A2 wsprofile C3 wsprofile H3 wsprofile A3 wsprofile
sequent depth HJ energy loss HJ initial sequent HJ efficiency HJ critical width constriction
ogee spillway Hazen-Williams parallel pipes three reservoirs tractive force
V-notch weir V-notch partially contracted Cipolletti weir Rectangular weir Standard contracted rectangular weir Standard suppressed rectangular weir
Froude number Vedernikov number Limiting contracting ratio
Creager rational slope-area linear reservoir storage indication 1 storage indication 2
Muskingum Muskingum-Cunge time-area Clark UH Cascade of linear reservoirs
USGS Methods for magnitude of floods in California Kinematic wave applicability Diffusion wave applicability Clark's unit hydrography compared to Ponce's version Correlation coefficient of a joint probability distribution Storage volume of a detention basin
Blaney-Criddle Penman Penman-Monteith reference crop Thornthwaite Priestley-Taylor Penman-Monteith ecosystems
Gumbel Gumbel 2 Log Pearson Log Pearson 2 TR-55 graphical curve number
Overland flow using the diffusion wave method Dynamic hydraulic diffusivity convolution S-hydrograph time of concentration water balance
UH cascade dimensionless UH cascade general UH cascade series UH cascade all series UH cascade
one-predictor linear one-predictor nonlinear two-predictor linear two-predictor nonlinear hyperbolic regression
fall velocity Lane & Koelzer USLE USLE2 Dendy-Bolton Shields
Duboys Meyer-Peter Colby 1957 Colby reservoir design life Equilibrium channel top width using the Lane et al. theory
Modified Einstein Procedure bridge scour using Melville equation
DO sag DO sag analysis Oxygenation Salinity (EC to TDS)