Numerical simulation of the stationary state of periodically driven coronal loops