Hydraulic Radius Examples, Formula, Calculator

[insert_php]
session_start();
$hyd1=0;$wet1=0;$area1=0;$area=0;$wet=0;$oper=0;$e1=0;$e2=0;$no1=”-“;$no2=”-“;$result2=”-“;
$i=””;$haw=0;$haww=0;$_SESSION[“haww”]=””;$_SESSION[“e1″]=””;$_SESSION[“e2″]=””;$_SESSION[“oper”]=””;$_SESSION[“haww1″]=””;$_SESSION[“e11″]=””;$_SESSION[“e21″]=””;$_SESSION[“oper1″]=””;
if(isset($_POST[“Calculate”]))
{

$haw=$_POST[“haw”]; $_SESSION[“haww”]=$haw;
if($haw === “hr”){
$no1 = “Area of Section Flow”;
$no2 = “Wetted Perimeter”;
$result2 = “Hydraulic Radius”;
$area=$_POST[“area”];$_SESSION[“e1”]=$area;
$wet=$_POST[“wet”];$_SESSION[“e2”]=$wet;
if($wet==0){echo ““;}
else{$hyd1=($area/$wet);$_SESSION[“oper”]=$hyd1;}
}
else if ($haw === “af”) {
$no1 = “Hydraulic Radius”;
$no2 = “Wetted Perimeter”;
$result2 = “Area of Section Flow”;

$hyd=$_POST[“hyd”];$_SESSION[“e1”]=$hyd;
$wet=$_POST[“wet”];$_SESSION[“e2”]=$wet;
$area1=($hyd*$wet);$_SESSION[“oper”]=$area1;
}
else{
$no1 = “Area of Section Flow”;
$no2 = “Hydraulic Radius”;
$result2 = “Wetted Perimeter”;

$area=$_POST[“area”];$_SESSION[“e1”]=$area;
$hyd=$_POST[“hyd”];$_SESSION[“e2”]=$hyd;
if($hyd ==0){echo ““;}
else{$wet1=($area/$hyd);$_SESSION[“oper”]=$wet1;}
}

}
unset($_POST[“submit”]);
[/insert_php]

Hydraulic Radius Examples, Formula, Calculator

hydraulic radius is the ratio of the cross-sectional area of a pipe to the perimeter of a pipe through which a fluid is flowing.

What To Calculate

Area of Section Flow(A) = m2
Wetted Perimeter(Pw) = m
Hydraulic Radius(Rh) =

Step by step explanation of your input values
Operation [insert_php] echo $no1 ;[/insert_php] [insert_php] echo $no2 ;[/insert_php]

Result

[insert_php] echo $result2 ;[/insert_php] [insert_php] echo $_SESSION[“e1”];[/insert_php] [insert_php] echo $_SESSION[“e2”];[/insert_php] [insert_php] echo $_SESSION[“oper”];[/insert_php]
Examples
Sr. Operation [insert_php] echo $no1 ;[/insert_php] [insert_php] echo $no2 ;[/insert_php] [insert_php] echo $result2 ;[/insert_php] Formula
Example1 Hydraulic Radius 5 5 1 [insert_php] echo “5/5”;[/insert_php]
Example2 Area of Section Flow 5 3 15 [insert_php] echo “5*3”;[/insert_php]
Example3 Wetted Perimeter 5 7 0.71428571428571 5/7