The Computation of Electromagnetic Field on Torus Knots