How to get pressure drop

I found that for the inlet boundary conditions, whether it’s the mass inflow, or the pressure inflow, I have to give the inlet pressure. If I only know the mass flow rate and want to get the pressure drop between the inlet and outlet, what should I do?