Computational Physics Summer School


Laboratory
Koonin & Meredith:
"Computational Physics"


This is the online documentation for the lab work based on parts of "Computational Physics" by Koonin & Meredith.

Photocopied chapters of Koonin & Meredith may be purchased from the registration desk. Further information will be given in Langanke's lectures.


UNIX systems

The following Fortran code from Koonin & Meredith are available on the workstations "rsphy4" and "rsphy8":

You must have an account on these machines. This is obtained by filling in a form at the school registration desk. Your account login will be "xyz106" where xyz are your three initials you put on the form. The password is what you requested on the form.

These machines are accessed with "Telnet". On Macs this is either in the "Summer School" folder or the "communications" folder. Instructions for using telnet.

The Koonin & Meredith files are in the directory:
"/users/nctp/hjg106/koonin"
All the files may be copied to your account using the command:
cp -r /users/nctp/hjg106/koonin koonin
This copies the contents of the directory into a new directory called koonin.

Already compiled code is in the file a.out in each directory. To execute it first change the permission with
chmod u+x a.out
Then type "a.out" to execute the code.

On "rsphy8" only the fortran may be compiled with the f90 command, e.g.
f90 proj4.for routines.for -o proj4
The program may now be run by entering "proj4".

Further important information is in the "README" file in the "koonin" directory. The README in each sub-directory gives the MATLAB commands for visualising the program output. Both the data files and the m-files must be copied to your local machine for visualisation. This can be done with the "Send FTP" command of telnet.


Macs & PCs

Fortran is not available on the Macs or PCs. MATLAB is an alternative. For an introduction to MATLAB see: Introduction to computational physics labs. For example the hydrodynamics lab of the introduction to computational physics is based on Koonin & Meredith.


White dwarf star structure

We have made available a MATLAB solution to the white dwarf structure project in Koonin & Meredith - Project II. This MATLAB solution was written by Walid El-Khoury an ANU Honours astrophysics student.

No guarantees are given as to the correctness of this code. Please report any problems.

The m-files should be in the school folder of the matlab folder. Otherwise they may be downloaded as text:

The program is executed by typing "whitedwarf". Try the default inputs initially. You may copy the code and alter it for your own pruposes.
[Home]
[ Summer School home page ] [ Lecture timetable ] [ School Map ]
[ HELP ] [ FAQ ] [ Email the organisers ] [ MATLAB homepage ]

Last Update 9 January 1996