Efficient simulation of flow and heat transfer in arbitrary shaped pipes door