Several exercise simulations for a computational physics course.
A few simple warmup problems to get everybody up to speed.
- Simple matrix operations
- Computing the Chebyshev polynomials using iteration.
- Integer Overflow
- Random walks in one dimension
- Event-based simulation of an EPRB experiment. Simulate quantum behaviour without solving the Schrödinger equation.
Simulation of the Ising model of ferromagnetism for one and two dimensions using the Metropolis-Monte-Carlo algorithm. The two-dimensional Ising model shows phase transitions.
Solving the Newtonian equations of motion using different algorithms such as
- Simple Euler
- Symplectic Euler
- Velocity Verlet
Maxwell's laws of electromagnetism in one dimension using Yee's algorithm
Solving the diffusion equation using a product formula approach and comparing it to random walks.
Solver for the one-dimensional Schrödinger equation. Test case: Tunneling of a Gaussian wave packet through a tunnel barrier
Solver for Bloch's equations for the behavior of ensembles of non-interacting spin-1/2 nuclei in a magnetic field used in NMR/MRI and quantum information