1: \begin{abstract}
2:
3: We analyse the number density and radial distribution of substructures and satellite galaxies
4: using cosmological simulations that follow the gas dynamics of
5: a baryonic component, including shock heating, radiative
6: cooling and star formation within the hierarchical concordance \LCDM~ model.
7: We find that the dissipation of the baryons greatly enhances the survival
8: of subhaloes, expecially in the galaxy core, resulting in a radial
9: distribution of satellite galaxies that closely follows the overall mass
10: distribution in the inner part of the halo.
11: Hydrodynamical simulations are necessary to resolve the adiabatic contraction
12: and dense cores of galaxies, resulting in a total number of satellites a factor of two
13: larger than found in pure dark matter simulation, in good agreement with the
14: observed spatial distribution of satellite galaxies within galaxies and clusters.
15: Convergence tests show that the cored distribution found by previous authors
16: in pure N-body simulations was due to physical overmerging of dark matter only structures.
17:
18: We proceed to use a ray-shooting technique in order to study the impact of these
19: additional substructures on the number of violations of the cusp caustic magnification
20: relation. We develop a new approach to try to disentangle the effect of
21: substructures from the intrinsic discreteness of N-Body simulations.
22: Even with the increased number of substructures in the centres
23: of galaxies, we are not able to reproduce the observed high numbers of discrepancies observed
24: in the flux ratios of multiply lensed quasars.
25:
26: \end{abstract}
27: