topic How to solve this pipe flow problem in PTC Mathcad
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127562#M50226
<HTML><HEAD></HEAD><BODY><P>I try to solve a pipeflow problem but I have problems in doing so as I have no experience in this type of problem. In the first part of the sheet you will find the known variables. In the second part I try to calculate the different pressures. However, I have problems in setting up the equations. Would anyone be so kind to help me with this? The file is made with MC15</P></BODY></HTML>Thu, 03 May 2018 15:58:59 GMTFDS2018-05-03T15:58:59ZHow to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127562#M50226
I try to solve a pipeflow problem but I have problems in doing so as I have no experience in this type of problem. In the first part of the sheet you will find the known variables. In the second part I try to calculate the different pressures. However, I have problems in setting upThu, 03 May 2018 15:58:59 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127562#M50226FDS2018-05-03T15:58:59ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127563#M50227
<HTML><HEAD></HEAD><BODY><P>1) V1, V2 need to be defined</P><P>2) All equations except the top 4 should be normal assignment above the solve block.h.exit:=..., etc.</P><P>3) You should solve for P1, P2, P3 AND P4 as well (4 equations, 4 variables to solve for)</P><P>4) You need guess values for P1 .. P4, not for other variables.</P></BODY></HTML>Thu, 18 Sep 2014 12:37:20 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127563#M50227Werner_E2014-09-18T12:37:20ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127564#M50228
<HTML><HEAD></HEAD><BODY><P>Thank you Werner that solved the issue</P></BODY></HTML>Thu, 18 Sep 2014 20:05:42 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127564#M50228FDS2014-09-18T20:05:42ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127565#M50229
<HTML><HEAD></HEAD><BODY><P>I have one additional question. How could I calculate "theoretical" V when forcing P1 to be 0 mmHg and by changing Pc? For clarity I have put both in purple. Sorry, for these obvious questions.</P></BODY></HTML>Sun, 21 Sep 2014 09:33:50 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127565#M50229FDS2014-09-21T09:33:50ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127566#M50230
<HTML><HEAD></HEAD><BODY><P>P.1 is not being passed to your solve block as zero, it is -66kPa. </P></BODY></HTML>Sun, 21 Sep 2014 09:47:32 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127566#M50230MikeArmstrong2014-09-21T09:47:32ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127567#M50231
<HTML><HEAD></HEAD><BODY><P>Mike, thanks for your reply but even if I change P1 in the solve block by 0 mmHg it will not solve. </P></BODY></HTML>Sun, 21 Sep 2014 11:12:58 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127567#M50231FDS2014-09-21T11:12:58ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127568#M50232
<HTML><HEAD></HEAD><BODY><BLOCKQUOTE><TABLE border="1"><TBODY><TR><TD><P>FDS wrote:</P><P></P><P>I have one additional question. How could I calculate "theoretical" V when forcing P1 to be 0 mmHg and by changing Pc? For clarity I have put both in purple. Sorry, for these obvious questions.</P></TD></TR></TBODY></TABLE></BLOCKQUOTE><P>Not sure if I understand what you'd like to achieve. You set P1 to 0 and want to solve for V1 instead of P1 in your solve block? This would be possible likewise but the problem is, that V and P have different units and can't be placed in the same vector. So you would have to make the solve block unitless by dividing all varaibles used by their unit and add the proper units later again - quite cumbersome.</P></BODY></HTML>Sun, 21 Sep 2014 11:29:17 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127568#M50232Werner_E2014-09-21T11:29:17ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127569#M50233
<HTML><HEAD></HEAD><BODY><P>Thanks Werner for your reply. I will try to explain a little bit better what I would like to achieve. I am draining fluid out of a collapsible system. When I use only gravity (siphon) Pc (pressure in the reservoir) would be 0 mmHg when I add also vacuum to increase drainage Pc would become negative. In the first part of the worksheet I try to define a flow were pressure at the entrance of the system would be as close as possible to 0, as this would not create collapse. It is quite cumbersome to estimate the flow in this way so I wondered if I could get a good estimate by using a solve block. What would you suggest to get this information?</P></BODY></HTML>Sun, 21 Sep 2014 11:37:15 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127569#M50233FDS2014-09-21T11:37:15ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127570#M50234
<HTML><HEAD></HEAD><BODY><P>Sorry, my fault. I haven't look to the end of your worksheet and stopped at the first solve block.</P><P></P><P>When you right click the red expression you get the option to trace the error and then you get the "real" reason for the solve block failing - "no solution found".</P><P><IMG __jive_id="78534" __jive_id="78534" class="jive-image-thumbnail jive-image" height="140" alt="1.png" src="https://community.ptc.com/legacyfs/online/78534_1.png" width="339" /></P><P></P><P> The reason is that with the values given the solution for the equation is a complax value (4.20 i m/s). Set the guess value for V1 to 1.2<STRONG>i</STRONG>m/s you get that result.</P><P><IMG __jive_id="78535" __jive_id="78535" class="jive-image-thumbnail jive-image" height="136" alt="0.png" src="https://community.ptc.com/legacyfs/online/78535_0.png" width="349" /></P><P>What you are trying to solve is a simple single equation for just one variable. This can be done easily symbolically by hand. Of course you could use Mathcads symbolic to do so for you, but you should copy the expression to an empty sheet to do so, otherwise the values assigned would be substituted. </P><P>You get a handy expression for V1 depending on all the other variables you can play conveniently with now.</P><P><IMG __jive_id="78536" __jive_id="78536" class="jive-image-thumbnail jive-image" alt="2.png" src="https://community.ptc.com/legacyfs/online/78536_2.png" width="450" /></P><P></P><P>You may also turn it into a function of Pc or maybe even addtionally of P1 if this makes sense for you</P><P><IMG __jive_id="78537" __jive_id="78537" class="jive-image-thumbnail jive-image" alt="4.png" src="https://community.ptc.com/legacyfs/online/78537_4.png" width="450" /></P></BODY></HTML>Sun, 21 Sep 2014 11:54:37 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127570#M50234Werner_E2014-09-21T11:54:37ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127571#M50235
<HTML><HEAD></HEAD><BODY><P>Werner what you describe I had used first but the result in this case 4.183 m/s does not generate a P1 of 0 mmHg when used in the first part of the worksheet but a value of 31035 mmHg. That was why I got confused in the first place. I believe it has to do with the fact that the head losses are calculated using the original V and thus not adapted in the reversed approach. Can this be solved or is this caused by another reason? Appreciate you help in this matter!</P></BODY></HTML>Sun, 21 Sep 2014 12:05:58 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127571#M50235FDS2014-09-21T12:05:58ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127572#M50236
<HTML><HEAD></HEAD><BODY><P>I haven't checked all dependencies but I see that at least h.in is dependent on V1 and I guess other variables used in the calculation ov V1 at the and, too. So its no surprise you don't get P1=0 by simply changing the value of V1 at the top of the sheet.</P><P>Only way out I can see is turning all calculations which depend on V1 and Pc into functions of those variables and use those functions in both solve blocks instead of the variables.</P></BODY></HTML>Sun, 21 Sep 2014 12:32:29 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127572#M50236Werner_E2014-09-21T12:32:29ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127573#M50237
<HTML><HEAD></HEAD><BODY><P>Thank you for your suggestion. I tried it (I hope in a correct way) but at no avail. Would you be so kind to have another look?</P></BODY></HTML>Sun, 21 Sep 2014 12:57:43 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127573#M50237FDS2014-09-21T12:57:43ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127574#M50238
<HTML><HEAD></HEAD><BODY><BLOCKQUOTE><TABLE border="1"><TBODY><TR><TD><P>FDS wrote:</P><P></P><P>Thank you for your suggestion. I tried it (I hope in a correct way) but at no avail. Would you be so kind to have another look?</P></TD></TR></TBODY></TABLE></BLOCKQUOTE><P>Why do you think it doesn't work?</P><P>The last solve block yield Vel=304.718 cm/s and if I set V.1 and P.c to their appropriate values before the first solve block, I get the solution with P1=0. Could it be that you forgot to set P.c to -70 mmHg and so the solveblock used P.c=0?</P><P><IMG __jive_id="78538" class="jive-image-thumbnail jive-image" onclick="" alt="1.png" src="https://community.ptc.com/legacyfs/online/78538_1.png" width="450" /></P></BODY></HTML>Sun, 21 Sep 2014 13:33:34 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127574#M50238Werner_E2014-09-21T13:33:34ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127575#M50239
<HTML><HEAD></HEAD><BODY><P>Well, when I use Pc = -70mmHg and Q = 5.99 L/min (put in purple background now) then I obtain a P1 of -0.17 mmHg. When I use P1 = 0 and Pc = -70 mmHg in the last solve block I obtain 5.903 L/min. However putting this value in for the flow in the first part with Pc -70 mmHg will generate a P1 of -3.06 mmHg. Also when I put in different values of Pc in the last solve block, for example -40 mmHg I get a V1 of 85 cm/s higher than with a Pc of -70 mmHg so there must be something wrong I presume.</P></BODY></HTML>Sun, 21 Sep 2014 14:07:52 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127575#M50239FDS2014-09-21T14:07:52ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127576#M50240
<HTML><HEAD></HEAD><BODY><P>Not sure but I think you have setup a different situation here because you change Q and not just V1 as before!</P><P>All velocities are dependend on Q so all have to be functions in Q, otherwise it can't work of course. Depending on your need it may also be usefull to express V2 to V4 not as functions in Q but as functions in V.1</P><P></P><P>Some of the discrepancy might also be because of rounding errors. You use just three decimals of the result. It may be a better idea to put the last solve block which yields V1 before the first one which calculates P1 to P4, so you can use the exact result without the need for manual copy and paste.</P></BODY></HTML>Sun, 21 Sep 2014 16:19:44 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127576#M50240Werner_E2014-09-21T16:19:44ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127577#M50241
<HTML><HEAD></HEAD><BODY><P>Upon rethinkig the whole thing I guess its best to express all as functions in Q.</P><P>See attached.</P></BODY></HTML>Sun, 21 Sep 2014 17:20:52 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127577#M50241Werner_E2014-09-21T17:20:52ZRe: How to solve this pipe flow problem
https://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127578#M50242
<HTML><HEAD></HEAD><BODY><P>Werner, I admire the way you support this forum. This is really helpful. I will look at it more closely tomorrow but at first sight this seems to solve all previous problems. Thanks a lot.</P></BODY></HTML>Sun, 21 Sep 2014 20:02:54 GMThttps://community.ptc.com/t5/PTC-Mathcad/How-to-solve-this-pipe-flow-problem/m-p/127578#M50242FDS2014-09-21T20:02:54Z