Molecular dynamics calculation for the modified xy model