I'm currently trying to figure out how to apply Bernoulli equation into a leaked pipe, especially to find the change of pressure before and after a leak appeared. From what I found know, Bernoulli equation states that total head $H$ in
is constant throughout the flow of pipe (with assumption of steady, incompressible, and inviscid flow). But most example (in textbooks and various sites) only show application in single flow pipe, branched pipes, or reservoir-to-reservoir use cases.
How do I apply Bernoulli equation in leaked pipe situation? And how does the pressure (in the pipe, upstream the leak) change after the leak appeared?