We investigate the collapse of a trapped dipolar Bose-Einstein condensate. This is performed by numerical simulations of the Gross-Pitaevskii equation and the novel application of the ThomasFermi hydrodynamic equations to collapse. We observe regimes of both global collapse, where the system evolves to a highly elongated or flattened state depending on the sign of the dipolar interaction, and local collapse, which arises due to dynamically unstable phonon modes and leads to a periodic arrangement of density shells, disks or stripes. In the adiabatic regime, where ground states are followed, collapse can occur globally or locally, while in the non-adiabatic regime, where collapse is initiated suddenly, local collapse commonly occurs. We analyse the dependence on the dipolar interactions and trap geometry, the length and time scales for collapse, and relate our findings to recent experiments.PACS numbers: 03.75. Kk, 75.80.+q Wavepacket collapse is a phenomenon seen in diverse physical systems whose common feature is that they obey non-linear wave equations [1], e.g., in nonlinear optics [2], plasmas [3] and trapped atomic Bose-Einstein condensates (BECs) [4,5,6,7,8,9]. In the latter case, collapse occurs when the atomic interactions are sufficiently attractive. For the usual case of isotropic s-wave interactions experiments have demonstrated both global [5] and local collapse [7] depending upon, respectively, whether the imaginary healing length is of similar size or much smaller than the BEC [10]. During global collapse the monopole mode becomes dynamically unstable and the BEC evolves towards a point singularity, with the threshold for collapse generally exhibiting a weak dependence on trap geometry [11,12]. Local collapse occurs when a phonon mode is dynamically unstable such that the collapse length scale is considerably smaller than the BEC.Recently, the Stuttgart group demonstrated collapse in a BEC with dipole-dipole interactions, where the atomic dipoles were polarized in a common direction by an external field [8,9]. The long-range nature of dipolar interactions means that the Gross-Pitaevskii wave equation that governs the BEC is not only non-linear but also non-local [13,14,15,16]. On top of being long-range, dipolar interactions are also anisotropic, being attractive in certain directions and repulsive in others. This anisotropy has manifested itself experimentally in the stability of the ground state, which is strongly dependent on the trap geometry [8], and in the anisotropic collapse of the condensate [9]. Some uncertainty exists over the mechanism of collapse in these systems. In the latter experiment, striking images indicate that the condensate underwent global collapse, which is likely to have occurred through a quadrupole mode [16,17,18]. In the former experiment, however, recent theoretical results suggest that local collapse played a dominant role [19].A unique feature of trapped dipolar BECs in comparison to s-wave BECs is that they are predicted to exhibit minima in their excitation spec...