Simulations of polymer nanocomposites