Numerical Simulation for Hammering Test Based on The FEMand The Adjoint Variable Method