Department of Physics and Astronomy: Computational Methods Junior Honours

Dr Peter Boyle, 2008. paboyle@ph.ed.ac.uk

INDEX

·       Introduction

·       Background material

·       Aims and objectives of the checkpoints

·       Checkpoints

1.    I/O, Graphing and xmgrace

2.    Vector3D class

3.    Particle class

4.    Driven damped simple harmonic motion

5.    Interacting two and three particle systems

6.    ADVANCED Many-particle molecular dynamics simulation

 

·       Due dates

    1. Week 7 – Checkpoints 1, 2, 3
    2. Week 11 – Checkpoints 4,5,6

You are expected to work at your own pace and manage your own time, and get marked throughout the course as you complete checkpoints.

The due date is an absolute latest time at which you should submit a checkpoint, and you should NOT turn up with three checkpoints to be marked on the due date..

Time management is your responsibility.

After the due date we will make model solutions available to enable those who miss to catch up and both present their
understanding of the code for that checkpoint, and move on to attempt the next checkpoint.

It is expected that you may have to work on this course outwith the scheduled lab contact time. You should view the contact time as a precious chance to ask questions, overcome any points where you get stuck, and get your progress marked so it is
a good idea to look over and start the work before you arrive in the lab.

You can always read the model solution later to see if there are any programming tricks you missed.

·        Checkpoint 1:

o       HarmonicPlotter.java

·        Checkpoint 2:

o       Class file Vector3d.java

o       Tester code Vector3dTester.java

o       Input data files Vector3dTester.input

·        Checkpoint 3:

o       Class file Particle3d.java

o       Tester codes Particle3dTest1.java,Particle3dTest2.java,Particle3dTest3.java

o       Input data files 1body.input ,2body.input

o       Optional dt varying: Particle3dTest_dterr.java

§           1body_err.input

·        Checkpoint 4:

o       Class files DampedDrivenSpring.java 

o       Input data files spring.input

·        Checkpoint 5:

o       Class files Particle3dTwoBodyForce.java Particle3dThreeBodyForce.java, ParticleForce.java, ParticlesForce.java

o       Input data files 2bodyAtom.input,  2bodySolar.input, 3bodyHe.input, 3bodySolar.inpu, 3bodyLJ.input