An Application of Classical Molecular Dynamics Simulation and AB Initio Density-Functional Calculation in Surface Physics