Determination of mechanical properties by using MD