Professional Documents
Culture Documents
09 Heat Equation
09 Heat Equation
09 Heat Equation
Objectives:
Be able to
Write the differential equations for a system modeled by the heat equation
Write the electrical RC circuit equivalent for such a system
Write the state-space equations for a heat system
Find the transfer function using MATLAB
Given the transfer function, predict how the system will respond to a step input
= −a ii x i + Σ a ij x j
dx i
dt
i≠j
where xi is the temperature at node i and aij are real positive constants:
a ij > 0
a ii > Σ a ij
i≠j
The last requirement is conservation of energy: the energy gained by neighboring nodes cannot be greater than
the energy lost at node i. If could be less (if you have a lossy, i.e. poorly insulated) system, however.
RC Circuit Analogy:
The electrical circuit which also satisfied the heat equation is a passive RC network with capacitors to ground and
resistors connecting the capacitors. For example, suppose you wanted to model the temperature along a long rod.
If you treat this as five finite elements, each element has
Thermal intertia: the energy stored is proportional to the temperature at that node, and
Thermal conductivity: Between elements, energy can flow and is proportional to the temperature
difference between adjacent nodes times the thermal conductivity.
The electrical analogy is an RC network where each voltage node has
A capacitor to ground: the energy stored is porportional to the voltage at the node, and
Resistance: between each capacitor, resistors are palced. The current flow is proportional to the voltage
between adjacent nodes times the electrical conductuvity of that resistor.
The analogy is
1-Dimenstional Example:
For example, find the mathematical model for the temperature along a long thin rod. For convenience, assume
you split this rod into five finite elements. For each element,
Assume each element has a thermal inertia of C Joules / degree. (the volume of each element times the
thermal capacitance of the material)
Between elements, assume that 1 Watts flows if the temperature difference is R degrees. (Thermal
conductivity times area divided by distance).
u x1 x2 x3 x4 x5
u x1 x2 x3 x4 x5
C1 C2 C3 C4 C5
+
u
-
= − ⎛⎝ R145 ⎞⎠ x 5 + ⎛⎝ R145 ⎞⎠ x 4
dx 2
C5 dt
eig(A)
{-0.8101, -6.9028, -17.1537, -28.3083, -36,8251}
DC = C*inv(A)*B
DC = 1.00000
The system has a DC gain of one. If the input is increased to 100C, the output will go to 100C as well.
The system has a dominant pole at -0.8101. It will take approximately 4.93 seconds (4/0.8101) to reach steady
state.
The dominant pole is real. There should be no overshoot or oscillations in the step response.
t = [0:0.1:10]';
y = step(G,t);
plot(t,y)
x1 x2 x3
x4 x5 x6
X1 x2 x3
+
U
-
x4 x5 x6
DC = -C*inv(A)*B
DC = 1.0000
The system has a DC gain of one. If the input is increased to 100C, the output will go to 100C as well.
The system has a dominant pole at -1.98. It will take approximately 2.02 seconds (4/1.98) to reach steady
state.
The dominant pole is real. There should be no overshoot or oscillations in the step response.