Imagine a pipe whose diameter changes (pipe reduction or pipe expansion)
Let's define two different places in that pipe:
point 1: with a pressure P1, velocity V1 and diameter D1;
and point 2: with a pressure of P2, velocity V2 and and D2.
Knowing that the fluid flows from point 1 to point 2...