fem1d_heat_implicit_test


fem1d_heat_implicit_test, a MATLAB code which calls fem1d_heat_implicit(), which solves the time-dependent 1D heat equation, using the finite element method in space, and an implicit version of the method of lines, using the backward Euler method, to handle integration in time.

Licensing:

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

Related Data and Programs:

fem1d_heat_implicit, a MATLAB code which uses the finite element method (FEM) and implicit time stepping to solve the time dependent heat equation in 1D.

Source Code:

TEST01 runs with initial condition 50 everywhere, boundary conditions of 90 on the left and 70 on the right, and no right hand side source term.

TEST02 uses an exact solution of g(x,t) = exp ( - t ) .* sin ( sqrt ( k ) * x ).

TEST03 runs on the interval -5 <= X <= 5, with initial condition 15 on the entire left and 25 on the entire right. The solution should settle down to a straight line from the left boundary to the right.


Last revised on 21 January 2019.