Title: On the Numerical Modeling of Concentrated Suspensions and of Viscoelastic Fluids (Doctoral Thesis, Stockholm, Royal Institute of Technology)