Você está na página 1de 3

A nozzle is attached to a pipe as shown in the figure below.

The inside diameter of the pipe is


100 mm, while the water jet’s exiting from the nozzle has a diameter of 50 mm. If the pressure
at section 1 is 500 kpa, determine the water jet’s velocity. Assume head loss in the jet is
negligible.

Analytical Solution:

𝑄 = 𝐴1𝑣1 = 𝐴2𝑣2

100 2 50 2
𝜋 (1000) 𝜋 (1000)
𝑣1 = 𝑣2
4 4

𝑣1 = 0.25𝑣2

Apply Bernoulli’s equation:

𝑃1 𝑣12 𝑃2 𝑣22
+ 𝑧1 + − 𝐻𝑙𝑜𝑠𝑠 = + 𝑧2 +
𝑝𝑔 2𝑔 𝑝𝑔 2𝑔

500(1000) (0.25 𝑣2)2 𝑣22


+ 0+ −0=0+ 0+
(1000)(9.81) 2(9.81) 2(9.81)

𝑣2 = 32.6599 𝑚/𝑠

Simplifying the equation for the program gives:


𝑃1 − 𝑃2 𝑣12 − 𝑣22
𝑓(𝑥) = + (𝑧1 − 𝑧2) + − 𝐻𝑙𝑜𝑠𝑠 = 0
𝑝𝑔 2𝑔

The program for the problem is:

package regulafalsi3;
import java.util.Scanner;

public class RegulaFalsi3 {

public static void main(String[] args) {

// TODO code application logic here

Scanner input= new Scanner (System.in);

double P1,ID1,ID2, A1, A2, v1,v2, g, p, z1,z2,a,b,fxa,fxb,c,fxc,fxd,xa,xb;


double l,m,d1,d2;
int n,i,j;
double weir [][]= new double [15][8];

System.out.println("Input the pressure at section 1 in kPa");


P1=input.nextDouble();

System.out.println("Input the inside diameter of the pipe in mm:");


ID1=input.nextDouble();
System.out.println("Input the value of exit diameter at nozzle in mm:");
ID2=input.nextDouble();

System.out.println("Input the value of a");


a=input.nextDouble();
System.out.println("Input the value of b");
b=input.nextDouble();

System.out.print(" \n xa \t\t fxa \t b \t fxb \t c \t fxc \tfxd\n");

for(n=0; n<15; n++){


d1=(ID2*ID2)/(ID1*ID1);
fxa=((500/9.81)+(((d1*d1*a*a)-(a*a))/(2*9.81)));
fxb=((500/9.81)+(((d1*d1*b*b)-(b*b))/(2*9.81)));
xa=a*fxb;
xb=b*fxa;

c=((xa-xb)/(fxb-fxa));
fxc=((500/9.81)+(((d1*d1*c*c)-(c*c))/(2*9.81)));
fxd= fxa*fxb;

for (j=0; j<7; j++){

if (j==0){weir[n][j]=a;}
if (j==1){weir[n][j]=fxa;}
if (j==2){weir[n][j]=b;}
if (j==3){weir[n][j]=fxb;}
if (j==4){weir[n][j]=c;}
if (j==5){weir[n][j]=fxc;}
if (j==6){weir[n][j]=fxd;}

System.out.printf("%10.4f", weir[n][j]);
System.out.print(" ");
}
System.out.println(" ");
if(fxa*c>0){a=c;}
else {b=c;}
}}}
The result of the program is:

The root of the problem (value of c), which is equivalent to 32.6599.

Exit velocity is 32.6599 m/s.

Você também pode gostar