Linear and Non-linear Numerical Analysis of Foundations