Chapter 8: True Basic Program Listings
Introduction to Computer Simulation Methods
Updated 20 August 2003.
- md. Listing includes subroutines initial, Verlet, accel, force, show_positions, show_output, save_config, set_up_windows, headings, and functions pbc and separation listed separately in the text. Note that the program differs from the listing in the text.
- hd. Listing includes subroutines initial, check_momentum, minimum_collision_time, move, reset_list, check_overlap, kinetic_energy, uplist, downlist, check_collision, contact, show_output, save_config, set_up_windows, and functions separation and pbc.