Compact physical model for simulation of thermal networks