Simulating Fundamental Physics: Numerical Endeavours in Astronomical and Particle Phenomenology