Accounting for pipeline thermal capacity in district heating simulations