Molecular dynamics calculation of elastic constants for a crystalline system in equilibrium.