Math 124B
MATLAB info
The following codes are written by Gerald Recktenwald to augment his Applied CFD class. Although the codes are well commented, and I encourage you to read through the codes, the author also has some documentation (pdf).
- HeatFTCS.m -- implementation of the heat FTCS scheme
- HeatBTCS.m -- implementation of the heat BTCS scheme. It requires
- TridiagLU.m -- LU-factorization of tridiagonal matrices
- TridiagLUSolve.m -- linear system solver with LU-factorized matrix of coefficients
- HeatCN.m -- implementation of the Crank-Nicolson scheme. It requires TridiagLU.m and TridiagLUSolve.m as well.