Skip to main content
1-Visitor
March 18, 2022
Solved

Solve Blocks Plotting Results

  • March 18, 2022
  • 2 replies
  • 2810 views

Good Morning, 

 

I am encountering a problem with the attached file. I have created a sheet that solves siphon flow rate using a solve block. So far the calculator is able to solve for different heights (Z) if you enter this value. 

 

Now what I wish to do is create a plot that shows the flow rates for heights varying between say 1 to 2 meters head. I have defined n number of points and created a function that returns a vector with the different heights in it this vector uses the index k and goes from 0 to n. 

 

Now what I wish to do is run the values for Z through my solve block to get an output (V-out) which corresponds to each element of the vector Z. (e.g solve for 1m to 2m using the increments defined in the second sheet). This way I can create a plot of the values Z against the values V-out and show how the flowrate through the siphon varies with the available head. 

 

Many Thanks,

Callum 

Best answer by LucMeekes

You can make the result of the solve block a function of Z.

In Mathcad 11 it looks like this:

LucMeekes_0-1647614707322.png

Note that VfRe(Z) is a vector function of Z. You have to take it apart in the three functions:

LucMeekes_1-1647614768657.png

Now you can plot:

LucMeekes_2-1647614825589.png

Now you build this into Prime. I've attached a Prime6 file conversion of yours, for other people to help.

Success!
Luc

2 replies

LucMeekes23-Emerald IVAnswer
23-Emerald IV
March 18, 2022

You can make the result of the solve block a function of Z.

In Mathcad 11 it looks like this:

LucMeekes_0-1647614707322.png

Note that VfRe(Z) is a vector function of Z. You have to take it apart in the three functions:

LucMeekes_1-1647614768657.png

Now you can plot:

LucMeekes_2-1647614825589.png

Now you build this into Prime. I've attached a Prime6 file conversion of yours, for other people to help.

Success!
Luc

23-Emerald IV
March 18, 2022

Incidentally, I get somewhat different results for Z=1.5 m than what your sheet shows:

V=3.485 m/s instead of 3.195 m/s, about 10 % more.

f=0.01485 instead of 0.01495, almost 1 % less.

Re=675650 instead of 619560, some 9 % more.

 

Luc

1-Visitor
March 22, 2022

Hi Luc, 

 

That is interesting that the flowrate would be different. Out of curiosity what were your tolerances on the calculations? I have the standard 10^-3 on my sheet, thinking this may possibly influence the result obtained from the solve block. 

 

Thanks,

Callum 

1-Visitor
March 22, 2022

Or could it possibly be due to your minor loss coefficient? I have used a K value of 1.411 in my calculation. I have screen-shotted the other parameters. 

Callum1995_0-1647949551191.png

Thanks,

Callum