Question: I need the code written out for Matlab(copy/ paste) and please double check because I don't have much time to submit it. Thanks Fluid flows

 I need the code written out for Matlab(copy/ paste) and please

double check because I don't have much time to submit it. Thanks

I need the code written out for Matlab(copy/ paste) and please double check because I don't have much time to submit it. Thanks

Fluid flows in pipe networks can be analyzed in a manner similar to that used for electric resistance networks. The picture below shows a network of 3 pipes. The volurne flow rates in the pipes are q1,q2, and q3. The pressure at the pipe ends are pa, pb, and pc. The pressure at the junction is p1. Under certain conditions, the pressure relation in a resistor. Thus, for the three pipes we have q1=R11(pap1)q2=R21(p1p3)q3=R31(p1p0) where each of the values R are the pipe resistances From conservation of mass: q1=q2+q3 The goal of this assignment is to set up a system of equations to solve for q1,q2,q3, and p1 if pa,pb,pc,R1,R2, and R3 are given First work on paper to rearrange the 4 given equations so that all terms containing q1,q2,q3, and p1 are on the left side of each equation, and all terms containing only known values Complete the function so that A Is a 44 array containing the coefficients of all the unknown quantities. Remember tr fat if one of the unknown quantities does not appear in an equation Then set up a column array b containing the right hand side of all 4 equations Solve the system of equations using the left division method and make sure the result is a column vector named solution and contains the values of q1, q2, q3, and p1 in that order. Remember not to alter the second box, labeled "Code used to call your function." Ind pc. The pressure at the junction is p1. Under certain conditions, the pressure-flow rate relation in a pipe has the sarne form as the voltage-current if pa, pb, pc, R1, R2, and R3 are given. , and p1 are on the left side of each equation, and all terms containing only known values are on the right. quantities. Remember that if one of the unknown quantities does not appear in an equation, it's coefficient will be zero olumn vector named solution and contains the values of q1,q2,q3, and p1 in that order

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!