Abstract:The harmony finite element method for solving the evolution partial differential equation requires different dimension on spacetime domain, which does not satisfy the restrictions on the same dimension of symplectic matrix group. In this paper, according to variational principle and using the virtual work principle, a principle for dealing with the different dimension problem of symplectic transfer matrix was proposed. The numerical example shows that the proposed method is effective.