In this paper, we numerically investigate on a three dimensional Smith-Purcell (SP) based terahertz frequency multiplier. Frequency multiplication procedure is proposed via learning of spontaneous SP radiation. At low frequency regions, texturing the metallic surfaces would manipulate the spoof surface plasmons (SSPs). Due to electronically exciting of these SSPs in a one-dimensionally extended metallic grating, a strong electron-plasmon momentum coupling develops and electron bunches arise. The evanescent wave releases from both ends of the structure. At the frequency harmonics of these SSPs, an umklapp process redshifts the SSP momentum beyond the light zone and the SP radiation is generated in the span of 0.466-1.1 THz and detected with a maximum peak around 90°(with respect to the grating). The SP radiation center frequency is *0.65 THz. Three dimensional particle-in-cell (PIC) simulations have been performed via finite integral method and the obtained results completely agree with analytic ones.