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 username@alfven.physics.mun.ca:To log on to alfven:
ssh -X username@alfven.physics.mun.ca(the -X is for forwarding X windows graphics)
No. | Due | |
---|---|---|
1 | Friday, Feb. 2, 2024 | Summary Project Project Grading Scheme Website for Gaussian integration |
2 | Friday, Feb. 16. 2024 | Summary Project Computational Physics notes by Professor A. MacKinnon, Imperial College London* |
3 | TBA | 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 |
4 | Presentations Friday April 5 | Project description presentation marking guide (plain text) |
*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
No. | Due | ||
---|---|---|---|
1 | due January 23, 9am | Assignment 1 | |
2 | due Thursday Feb 8 | Assignment 2 | |
3 | TBD | Assignment 3 starter code A3Q1.f90 Jupyter notebook A3.ipynb | |
4 | In-class assignment | Assignment 4 | Q1: poisson-student.f90 Q2: sqwell-student.f90 Q3: sqwell-time-student.f90 movie.gnu notes.txt Q1 video Q2 video Q3 video (from 2022, where animation was done differently. Code now generates a single file processed by movie.gnu) Password: nYpVKV6W |