fd1d_heat_implicit_test, a C++ code which calls fd1d_heat_implicit() to solve the time-dependent 1D heat equation, using the finite difference method (FDM) in space, and an implicit version of the method of lines to handle integration in time.
The information on this web page is distributed under the MIT license.
fd1d_heat_implicit, a C++ code which uses the finite difference method (FDM) and implicit time stepping to solve the time dependent heat equation in 1D.
x = load ( 'x.txt' ); t = load ( 't.txt' ); u = load ( 'u.txt' ); [ xg, tg ] = meshgrid ( x, t ); mesh ( xg, tg, u );