Multiscale methods for nanoengineering