Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

8. (Fluid mechanics) Head loss is a measure of a fluid\'s reduction in pressure

ID: 3591551 • Letter: 8

Question

8. (Fluid mechanics) Head loss is a measure of a fluid's reduction in pressure as it travels down a pipeline and is unavoidable because of friction between the fluid and the pipe's walls. For all fluids flowing smoothly in any pipe, the head loss is given by the D'Arcy- equation: 2 s (m). e's friction coefficient (dimensionless) is the pipefriction L is the pipe length isthe pipe diameter (m or ft). (m or ft). s the fluid velocity in the pipe (m/s or ft/sec). is the gravitational constant (9.81 m/s2 or 32.2 fü/sec2). recision arguments (one for the pipe length, one for the pipe diameter, one for the fluid's lude the function written for Exercise 8a in a working program, and verify that your pro- Using this formula, write a C++ function named headLoss() that accepts four double- a. and one for the friction coefficient) and returns the head loss in meters. b. Incl gram is working velocity of 4 m/s in a pipe with a friction coefficient of 0.02 that's 100 meters long and has a diameter of 0.3 meters. After verifying that your program is working coo mine the head loss for a fluid flowing smoothly through the same p correctly by determining the head loss for a fluid flowing smoothly at a ter- PhotoGrid ip

Explanation / Answer

#include<iostream>
#include<math.h>

using namespace std;

// Find Smallest Number compare Function
double headloss(double Length, double diameter, double velocity, double friction_coeficient) {
double g = 9.81;
double t = friction_coeficient*(Length/diameter)*((velocity*velocity)/2*g);
return t;
}

int main() {
//for check
?/* double L,D,V,F;
cout<<"Enter Pipe Length"<<endl;
cin>>L;
cout<<"Enter Pipe Diameter"<<endl;
cin>>D;
cout<<"Enter Fluid Velocity of Pipe"<<endl;
cin>>V;
cout<<"Enter Pipes friction of Coefficient"<<endl;
cin>>F;
cout<<headloss(L,D,V,F)<<endl;*/
//calculation
cout<<headloss(100,0.3,4,0.02);
  
return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote