Let's say I have a section of straight pipe whose radius varies along its length with some sort of ideal fluid flowing through it. Is there an equation I can use to calculate the pressure of a fluid $P(x)$ at location $x$ given the radius at that point, $r(x)$?
My best guess at a solution would be something like:
$$ P(x) = \frac{1}{2\pi r(x)^{2}}. $$
Since it's intuitive that as the radius of the pipe goes to $0$, the pressure should go to infinity, but that seems too simple. So is that the right equation, or is it something else?