On the influence of cooling and heating processes on the Parker instability – II. Numerical simulations