Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Re: How to solve this pipe flow problem

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-18-2014
07:46 AM

09-18-2014
07:46 AM

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

Solved! Go to Solution.

Labels:

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-18-2014
08:37 AM

09-18-2014
08:37 AM

1) V1, V2 need to be defined

2) All equations except the top 4 should be normal assignment above the solve block.h.exit:=..., etc.

3) You should solve for P1, P2, P3 AND P4 as well (4 equations, 4 variables to solve for)

4) You need guess values for P1 .. P4, not for other variables.

16 REPLIES 16

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-18-2014
08:37 AM

09-18-2014
08:37 AM

1) V1, V2 need to be defined

2) All equations except the top 4 should be normal assignment above the solve block.h.exit:=..., etc.

3) You should solve for P1, P2, P3 AND P4 as well (4 equations, 4 variables to solve for)

4) You need guess values for P1 .. P4, not for other variables.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-18-2014
04:05 PM

09-18-2014
04:05 PM

Re: How to solve this pipe flow problem

Thank you Werner that solved the issue

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-21-2014
05:33 AM

09-21-2014
05:33 AM

Re: How to solve this pipe flow problem

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.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-21-2014
05:47 AM

09-21-2014
05:47 AM

Re: How to solve this pipe flow problem

P.1 is not being passed to your solve block as zero, it is -66kPa.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-21-2014
07:12 AM

09-21-2014
07:12 AM

Re: How to solve this pipe flow problem

Mike, thanks for your reply but even if I change P1 in the solve block by 0 mmHg it will not solve.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-21-2014
07:29 AM

09-21-2014
07:29 AM

Re: How to solve this pipe flow problem

FDS wrote:

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.

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-21-2014
07:37 AM

09-21-2014
07:37 AM

Re: How to solve this pipe flow problem

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?

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-21-2014
07:54 AM

09-21-2014
07:54 AM

Re: How to solve this pipe flow problem

Sorry, my fault. I haven't look to the end of your worksheet and stopped at the first solve block.

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".

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**i**m/s you get that result.

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.

You get a handy expression for V1 depending on all the other variables you can play conveniently with now.

You may also turn it into a function of Pc or maybe even addtionally of P1 if this makes sense for you

Highlighted
##

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

09-21-2014
08:05 AM

09-21-2014
08:05 AM

Re: How to solve this pipe flow problem

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!