can someone write a basic c program for this problem?
Hey,
Note: Brother in case of any queries, just comment in box I would be very happy to assist all your queries
#include <stdio.h>
int main()
{
double
D1,D2,V1,V2,v1,v2,pi=3.14159,p=1000,A1,A2,Vgpm,Vcmps,m1,m2;
printf("Enter the main volume flow rate in gal/min: ");
scanf("%lf",&Vgpm);
printf("Enter diameter of branch 1 in cm: ");
scanf("%lf",&D1);
printf("Enter diameter of branch 2 in cm: ");
scanf("%lf",&D2);
printf("Enter velocity of branch 2 in m/s: ");
scanf("%lf",&v2);
D1=D1/100.0;
D2=D2/100.0;
Vcmps=Vgpm/(264.17*60.0);
A1=pi*D1*D1/4.0;
A2=pi*D2*D2/4.0;
V2=A2*v2;
V1=Vcmps-V2;
m1=p*V1;
m2=p*V2;
v1=V1/A1;
printf("Main volume flow rate = %.1f gal/min ",Vgpm);
printf("Main volume flow rate = %.5f cubic m/s ",Vcmps);
printf("Branch 1 diameter = %.1f cm ",D1*100.0);
printf("Branch 2 diameter = %.1f cm ",D2*100.0);
printf("Branch 1 area = %.5f sq meters ",A1);
printf("Branch 2 area = %.5f sq meters ",A2);
printf("Branch 1 volume flow rate = %.5f cubic m/s
",V1);
printf("Branch 2 volume flow rate = %.5f cubic m/s ",V2);
printf("Branch 1 mass flow rate = %.2f kg/s ",m1);
printf("Branch 2 mass flow rate = %.2f kg/s ",m2);
printf("Branch 1 average velocity = %.2f m/s ",v1);
printf("Branch 2 average velocity = %.2f m/s ",v2);
}
Kindly revert for any queries
Thanks.
can someone write a basic c program for this problem? ENGR 200 SPRING, 2019 Al: Computing...
A flow nozzle equipped with a differential pressure gage is used to measure the flow rate of water at 10°C (p 9997 kg/m3 and p 1.307 x 10-3 kg/m s) through a 3-cm-diameter horizontal pipe. The nozzle exit diameter is 1.5 cm, and the measured pressure drop is 3.3 kPa. Determine the volume flow rate of water, the average velocity through the pipe, and the head loss 1.5 cm Differential pressure gage -3 m3(s m/s The volume flow rate of...
Air enters a 16-cm-diameter pipe steadily at 200 kPa and 20°C with a velocity of 5 m/s. Air is heated as it flows, and it leaves the pipe at 180 kPa and 38°C. The gas constant of air is 0.287 kPa·m3/kg·K. Whats the volumetric flow rate of the inlet/outlet, mass flow rate and velocity & volume flow rate at the exit?
Problem The relation between pressure drop and flow rate of laminar flows in a pipe is given by l bar 50 m 20° 128u dz PS Flow rate Q is the product of the average velocity and the cross-sectional area of the pipe What is the pressure needed to drive a viscous oil flow upslope through a 12 cm diameter pipe? The length of the pipe is 50 meters. The slope is 20°. At the end of the pipe, the...
1) inside D = OD - 2 (thickness t) A (Area) =pi/4 (D^2) Volumetric flow (V)= (C m/s) (A m^2) C=velocity I can't figure out the density kg/m^3 rho= 1/v (m^3/kg) - specific volume A fluid that has a relative density of 0.013 is passed through a pipe that has an outer diameter of 98 mm and a wall thickness of 10 mm. The mass flow rate of the fluid measured to be 660 kg/min, determine the average velocity of...
In a pharmaceutical plant a reactant (assume with properties of water at 10°C) and flow rate of 200 g/min must be directed through a pipe across a 300 m bridge. There are two options for he pipe: a 1 cm diameter pipe and a 2 cm diameter pipe. 1) Find the average fluid velocity for each pipe 2) Find the Reynolds number for the flow in each pipe 3) Find the pressure drop due to friction losses across the length...
DON’T disregard the thermal conductivity of the pipe 3.) Oil at 200 C flows in a pipeline. The pipe has a 30-cm diameter and the flow is at an average velocity of 2 m/s. A 200-m-long section of the pipeline passes through icy waters of a lake at 0° C. The pipe is uncoated carbon steel with a thermal conductivity of 61 W/m o C. Determine (a) the temperature of the oil when the pipe leaves the lake, (b) the...
Water at 200 C is steadily flowing an angre) verging pipe section that is inclined by the figtun an C is steadily flowing throle of ong with an diameter of 10 mm C2. The kPa ction 2). The smal pect to the horizontal (See initial testing sectio The total testing section length is 2ction small final diameter of 20 mm (Seetion2 of 100 diameter section shows a gage presas. Other ibriun D2 20 mm and average flow velocity will be...
8. In Fig. FE3.1 water exits from a nozzle at steady state into atmospheric pressure of 101 kPa. If the flow rate is 160 gal/min, what is the average velocity at section 1? 1 gal- 3.7% 103 me. (5 pts) 7 cm 4 cm jet (b) 0.81 m/s (c) 93 m/s (d) 23 m/s (a) 2.6 m/s (e) 1.62 m/s P 101 kPa Fig. FE3.1 9. A fireboat pump delivers water to a vertical nozzle with a 3:1 diameter ratio,...
can someone help me with question - Required information NOTE: This is a multi-part question. Once an answer is submitted, you will be unable to return to this part. A garden hose attached with a nozzle is used to fill a 20-gal bucket. The inner diameter of the hose is 1 in and it reduces to 0.52 in at the nozzle exit. The average velocity in the hose is 8 fts and the density of water is 62.4 lbm/113 Determine...
Problem 2 Let's consider a single-stream problem with a 28-cm diameter pipe where Refrigerant R-134a flows steadily at 200 kPa and 20°C with a velocity of 5 m/s. The refrigerant undergoes a heating process, and leaves at 180 kPa and 40 degrees C 0 R-134a 200 kPa 20°C 5 m/s 180 kPa 40°C 10.2. A. Is this a steady-flow process? Check all that apply. □ Yes, nothing else is mentioned and we need to make this assumption to proceed with...