Today, we will solve the heat equation,
Note that this computer session combines what you already know about time-stepping (from the C sessions), and what you know about solving stationary partial differential equations (from the D sessions and session E1).
Before today's computer session, make sure that you understand and can answer the following questions.
Question 1 Derive the variational formulation (2) from the heat equation (1).
Question 2
How does the corresponding variational formulation look for the
method?
This method is also known as the Crank-Nicolson method.
Question 3
Verify that
![]() |
(3) |
![]() |
(4) |