Numerical Study of The Dynamical Casimir Effect and its Classical Analogue in a Double Cavity