Computational methods for solids and fluids