Computer simulation of single-layer buckling