Heat Sink Using PS State-Space Block
This example shows how to use the PS State-Space block to model a heat sink in air. The heat sink represents rods with distributed masses along their lengths. One end of each rod is fixed to a base and undergoes conduction. Heat conducts along the length of each rod. The length of each rod is also exposed to air and undergoes convection with the air.
Inputs to the PS State-Space block are the base temperature and the air temperature. The base temperature is modeled by a Temperature Source block with a temperature of 600 K. The air is modeled by a Gas network consisting of a pipe between two reservoirs at 293.15 K. Air flows at a rate of 1 kg/s. A temperature sensor at the pipe inlet provides a second input to the PS State-Space block.
The PS State-Space block outputs the heat flow from the heat sink to the air. The model uses a Controlled Heat Flow Rate Source to add the heat to the gas network.
Model

Simulation Results from Simscape Logging
