12.07.2015 Views

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

COPYRIGHT 2008, PRINCETON UNIVERSITY PRESS

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

simulating matter with molecular dynamics 433Math . random ( ) +Math . random ( ) +Math . random ( ) ) /12.−0.5;vx[i] = vx[i]∗Math . sqrt ( Tinit ) ; // Scale v with temperatureSystem . out . println ("init vx = "+vx [ i ] ) ;}t1 = 0; t2 = 1; // t , t+h indiceshover2 = h/2.;t = 0;KE = 0.0; PE = 0.0; // initial KE & PE vPE = Forces (t1 , PE) ;for ( i = 0 ; i

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!