Mach Number of Isentropic Flow example, formula and calculations
[insert_php]
$result=0;
$speedofflow=0;
$speedofsound=0;
$error=”Calculate Values”;
if(isset($_POST[“submit”]))
{
$speedofflow=$_POST[“speedofflow”];
$speedofsound=$_POST[“speedofsound”];
if($speedofsound==0)
{
$error=”Division By zero Error …! speed of sound = “.$speedofsound;
}
else if($speedofflow==0)
{
$error=”Division By zero Error …! speed of flow = “.$speedofflow;
}
else
{
$result=$speedofflow/$speedofsound;
}
}
[/insert_php]
Result:
Steps with what you enter.
[insert_php]
echo ” Speed of flow = “.$speedofflow.”
“;
echo ” Speed of sound = “.$speedofsound.”
“;
echo “Result= Speed of flow / Speed of sound
“;
echo “Result= “. $speedofflow.”/”.$speedofsound.”
“;
echo “Result= “.$result;
[/insert_php]
Examples | |||||
---|---|---|---|---|---|
Example | Speed of Flow: | Speed of Sound: | Formula | values | Mach Number: |
Example # 1 | 5 | 2 | Speed of flow / Speed of sound | 5/2 | 2.5 |
Example # 2 | 12 | 3 | Speed of flow / Speed of sound | 12/3 | 4 |
Topic Covered:
Mach Number of Isentropic Flow example, formula and calculations
List of All Examples of Fluid Mechanics : Click Here .