You are on page 1of 2

/*Program to find Renolds No*/ //All dimensions should be in meter #include<stdio.h> #include<conio.h> #include<math.

h> void main() { float rho,d,v,u,Re; clrscr(); printf("\n\t ALL DIAMENSION SHOULD BE IN METER"); printf("\n\t Enter the diameter of pipe :"); scanf("%f",&d); printf("\n\t Enter the value of density :"); scanf("%f",&rho); printf("\n\t Enter the value of velocity :"); scanf("%f",&v); printf("\n\t Enter the value of viscosity :"); scanf("%f",&u); Re=(rho*d*v)/u; printf("\n\t The Renolds no is : %f", Re); if(Re<=2000) { printf("\n\t Flow is laminar"); } else { printf("\n\t Flow is turbulant"); } getch(); }

OUTPUT: ALL DIAMENSION SHOULD BE IN METER Enter the diameter of pipe :10 Enter the value of density :800 Enter the value of velocity :1.02 Enter the value of viscosity :0.10 The Renolds no is : 81600.000000 Flow is turbulant

/*Program to find discharge through venturimeter*/ //All dimensions are in meter


#include<stdio.h> #include<conio.h> #include<math.h> void main() { float g=9.81,h,cd,Qact,Qthe,d1,d2,a1,a2; float a,b,pi=3.14159; clrscr(); printf("\n\t ALL DAIAMENSION SHOULD BE IN METER"); printf("\n\t Enter the inlet diameter of venturimeter :"); scanf("%f",&d1); printf("\n\t Enter the throat diameter of venturimeter :"); scanf("%f",&d2); printf("\n\t Enter the manometer height :"); scanf("%f",&h); printf("\n\t Enter the value of coefficient of discharge :"); scanf("%f",&cd); a1=(pi/4)*(d1*d1); a2=(pi/4)*(d2*d2); printf("\n\t Value of a1 %f m^2",a1); printf("\n\t Value of a2 %f m^2",a2); a=sqrt((a1*a1)-(a2*a2)); b=2*g*h; Qact=(cd*a1*a2*b)/a; Qthe=(a1*a2*b)/a; printf("\n\t Value of Qact is %f m^3/sec",Qact); printf("\n\t Value of Qthe is %f m^3/sec",Qthe); getch(); }

OUTPUT:.. ALL DAIAMENSION SHOULD BE IN METER Enter the inlet diameter of venturimeter :20 Enter the throat diameter of venturimeter :10 Enter the manometer height :0.05 Enter the value of coefficient of discharge :0.98 Value of a1 314.158997 m^2 Value of a2 78.539749 m^2 Value of Qact is 77.982834 m^3/sec Value of Qthe is 79.574318 m^3/sec

You might also like