Structure Formation in Astrophysics: The numerical simulation of turbulence