I have been searching for the equation of calculating the pressure inside a rectangular pipe using volumetric flow rate but all I am finding is the Hagen–Poiseuille equation that calculates the pressure inside a cylindrical pipe: Flow rate=πr4(P−P0)/8ηl. Any idea?