Code and excerpt from lecture notes demonstrating application of the finite difference method (FDM) to one-dimensional consolidation. The extracted lecture note is taken from a course I taught entitled Advanced Computational Methods in Geotechnical Engineering. Link to notes and examples on GitHub Pages: https://yaredwb.github.io/FDM1D/