From cosmic voids to collapsed structures: HPC methods for Astrophysics and Cosmology