Most disciplines within physics require computational methods in some way. It is our intention to train students to apply computational methods to physics problems using Fortran or C code. We will provide a three-way balance between understanding the theory behind the methods, actually implementing the method to a specific problem (programming from scratch, using existing libraries), and becoming accustomed to doing so within a Unix-like environment (which might entail, for example, using scripts to manage data sets and program execution).
We will select a few methods that may include, but are not limited to, the following: numerical differentiation and integration; linear algebra, including solving systems of equations and finding the eigenvalues of a matrix (vibrational normal modes of a set of oscillators); ordinary differential equations (charged particles in an electromagnetic); partial differential equations (shallow water wave dynamics); Monte Carlo and molecular dynamics simulations (properties of condensed matter systems).
Classes Tuesdays and Thursdays 9am to 10:15am C3067
Lab: Fridays 2pm to 3:50pm (+ extra time after), C3057
Help Session (Office Hours): TBD
tar -zcf project1sol-YOUR-NAME.tgz Project1sol cp project1sol-YOUR-NAME.tgz /home/SubmissionsNow, if you've been working on your own machine, you need to copy your files over to alfven. To copy a file or directory from your machine to your home directory on alfven, execute (don't miss the colon at the end!)
scp dirname firstname.lastname@example.org:To log on to alfven:
ssh -X email@example.com(the -X is for forwarding X windows graphics)
|Friday, Feb. 2, 2024
|Summary Project Project Grading Scheme Website for Gaussian integration
|Friday, Feb. 16. 2024
|Summary Project Computational Physics notes by Professor A. MacKinnon, Imperial College London*
|Project description M vs T in thermodynamic limit Suscept. vs T near Tc in thermodynamic limit ChatGPT code Sample 10x10 Ising configuration gnuplot file for viewing the sample config
*I gratefully acknowledge the author of "Computational Physics -- 3rd/4th Year Option", Emeritus Professor Angus MacKinnon of Imperial College London, for kindly permitting me to use and post his notes. -ISV
Getting NR routines in C working for Project 2
If you are really only interested in the Fortran version, I still recommend watching the first five minutes or so of the C video before going on to the one for Fortran. Password for both is 3CpCZYZCU94.
Getting NR routines in Fortran 90 working for Project 2
|due January 23, 9am
|due Thursday Feb 8
|Assignment 3 starter code A3Q1.f90 Jupyter notebook A3.ipynb