Based on Sherief ‘s generalized thermodiffusion theory with one relaxation time, the dynamic response of an infinite body with a cylindrical cavity whose surface suffers thermal shock is studied by using finite element method. In order to avoid losing precision in the application of integrated transformation method, finite element equations are solved directly in time domain. The temperature, displacement, stress, diffusion concentration as well as chemical potential are obtained. The results show that the present method is an effective and exact numerical analysis method for the generalized thermoelasticity problem and the generalized thermodiffusion problem. The effects of the diffusional item on temperature, displacement and stress in elastic body are studied simultaneously.