Going to need some help with setting some equations up here. Hydralic caulcations and friction lose I’ve been using for years, but this may need some trig or some heavy duty algebra. Hopefully some math whiz can chime in-

I have a master pressure on my truck (rpm’s from transferred rod/tranmission raises this pressure as can hydrant pressure/incoming lines, but that’s irrelvant for the time being. We just have a master pressure for now)

The master pressure is “outputted” to any lines that are discharged from the truck. For example, if I have a master pressure of 200 PSI and two lines, and they are opened FULLY, each would get 100 psi. If I had 3 fully opened, that pressure is shared evenly, so about 66 psi each. as a note, the pressure is shared EVENLY amongst all lines, the only prioritization is done by the pump operator who closes valves, eliminating them from the equation so to speak.

However, the problem for me is that that the valves can be partially opened, affecting the pressure. (that literally is how you control each one, you ‘gate’ them down. I tried numerous times to sketch this out, I know that ultimately the values are proportional and can be expressed as a percentage, I just am not sure how to do this. (I tried plugging various numbers and seeing if I could find a pattern to derive an equation from, but so far, no dice)

So, for example, if I had 3 lines, line A , line B, line C - and a master pressure of 300 psi. If line A is open fully, line B is 50 % open and line C is completely closed, I know that line A would get 200 psi and line B would get 100 (this is all theoretically but should make sense, it’s a pressurized system). What equation can I pull from this that I could replicate into programming.

Thanks for any help you might be able to give!

(Note, I am probably going to do this in blueprint but it shouldn’t make a difference either way)