Impedance modelling of pipes