The urban transformation that is taking place in Kiruna, a Swedish town well above the Arctic Circle in the sub-arctic climate, is due to the ground deformation caused by iron ore mining and it is affecting all the infrastructures of the town. This thesis focuses on the studies about the district heating for the town of Kiruna. In the field of district heating it is important to have a good knowledge about network behavior, especially if network structure is meshed, in order to understand how the flow is distributed in each pipe within the network. This thesis describes the development of a method for the simulation of district heating networks that makes it possible to analyze and study complex networks with meshed structure, something tha...