5. Transient storage
Switching on the heater
Section titled “Switching on the heater”Start the square at 300 K everywhere. At time zero, switch on uniform heating while holding its exterior at 300 K. Initially there is no temperature gradient. Energy accumulates in the interior; gradients develop; conduction increasingly carries energy to the bath. Eventually storage becomes negligible and the steady solution from the previous chapter is approached.
The governing equation and initial condition are
The exterior condition remains K. Initial data describe the starting thermal state; boundary data describe its surroundings for all subsequent times. We take constant, so storage is linear in temperature.
This chapter connects that physical warming to the actual time-dependent model and to the approximation introduced by a time step.
A time scale and a simple exact mode
Section titled “A time scale and a simple exact mode”The ratio sets the diffusion scale. In a source-free slab with ends held at , try the temperature rise
It vanishes at both ends. Substituting into gives
Thus this mode decays with time constant . A mode with twice the spatial frequency decays four times faster. Diffusion smooths small spatial features quickly. This analytic slab calculation explains the role of capacity; it is a different initial-boundary-value problem from the heated square we run below.
A uniform-temperature model needs its own assumption
Section titled “A uniform-temperature model needs its own assumption”If internal conduction is sufficiently fast compared with boundary exchange, you may approximate an entire body by one temperature. With uniform body temperature , constant bath temperature , and surface exchange coefficient , its energy account is
With no source, the decay time is . This connects to the scalar decay model. Comparing internal and surface resistances suggests checking , with . A small value supports—but does not by itself quantify the error of—the uniform-temperature approximation.
The heated square has fixed cold boundaries and a spatial temperature profile. Its single free coefficient on a coarse mesh is the height of a spatial hat, not the uniform temperature of the whole body. Having one unknown does not make the two physical models identical.
Derive the spatially discrete warming equation
Section titled “Derive the spatially discrete warming equation”Retain the same center hat and write . Testing the transient equation with gives
For square side length , the previous chapter’s integrals give and . Our square has m. On one cell,
Four cells with give , carrying units J/(m K). For W/(m K), J/(m³ K), and W/m³:
where the numerical is in seconds. This is exact in time for the four-cell spatial approximation. Its time constant is s. Increasing capacity slows warming but leaves , the eventual temperature rise, unchanged. The matrix form and time integration of heat equations are treated in Bathe, Lecture 20, pp. 3–4.
Backward Euler changes the time history
Section titled “Backward Euler changes the time history”Backward Euler evaluates conduction at the new time:
Solve this algebraic equation:
Subtract the steady value . The deficit is multiplied each step by . With ,
For s and unit material parameters, . Before running, calculate the three center temperatures:
| Step | Time [s] | Center temperature [K] |
|---|---|---|
| 0 | 0 | 300 |
| 1 | 1/24 | 300.046875 |
| 2 | 1/12 | 300.0703125 |
| 3 | 1/8 | 300.08203125 |
These are values of the recurrence, not values of the continuous-time exponential. At the first step the exponential gives a rise , which exceeds the Backward Euler rise. The step is stable but coarse compared with the warming time.
Read and run the storage model
Section titled “Read and run the storage model”Return to the
maintained source listing.
The TransientHeatedBody entry makes four changes to the physical declaration:
state temperaturemarks a quantity with evolution;initialassigns its starting temperature;- the parameter
capacityhas units J/(m³ K); and storage capacity * temperaturecontributes its rate to the balance.
The runner binds capacity to 1.0, selects
eqiora.time.BackwardEuler(step_s=1/24), creates the initial State, and requests
three accepted steps. Run it from the Get started working folder:
.venv/bin/python eqiora-source/examples/heated-body/run.pyInspect the printed time and the center value in each accepted State. All eight exterior coefficients remain 300 K. The center approaches the steady value from below. The runner’s transient block shows how the same local package supplies the transient entry.
Separate two experiments
Section titled “Separate two experiments”Physical change: double capacity, keeping heating, conductivity, and step fixed. The steady value is unchanged, but becomes and the first rise is K. More energy is needed for a given temperature change.
Numerical change: restore capacity and halve the step. Compare at the same physical time, so use twice as many steps. At s, two steps of s give , and a rise of K. This is closer to the continuous-time value than the single coarse step. Comparing both runs after one step would compare different physical times.
Exercises
Section titled “Exercises”- Derive the recurrence for arbitrary positive and constant . Why does the deficit always decrease without changing sign?
- For unit parameters and twice the capacity, calculate the first three center rises at the original step size.
- Derive forward Euler for the same one-coefficient system. When does its homogeneous error decay, and when does it decay without alternating sign?
- Why does shrinking the time step not remove the four-cell spatial error?
Solution hints
- .
- Use K.
- The error multiplier is . Decay requires ; nonnegative decay requires . This is a mathematical comparison of methods; the runner uses Backward Euler.
- The time integrator approaches the ODE defined by the fixed spatial basis. Increasing temporal resolution cannot add missing spatial variation.
References
Section titled “References”- Klaus-Jürgen Bathe, Finite Element Analysis of Solids and Fluids I, MIT 2.092 (2009), Lecture 20, transient heat-transfer analysis, pp. 3–4.
- Chris Schuh, Materials Processing, MIT 3.044 (2013), Lecture 2: Heat conduction.
Previous: A heated body in Eqiora · Next: Assessing a thermal calculation