Quasi-periodic solutions for class of Hamiltonian partial differential equations with fixed constant potential