Astrophysics code