Modeling and Control of Power Flow for Transient Thermal Systems