The Finite Element Method for Porous Materials