The Finite Element Method in the Static and Dynamic Deformation and Consolidation of Porous Media