This repository contains the codes for a graduate-level computational physics course where I used numerical recipes in C to numerically solve different problems in physics as described below. Theories are from the book Computational Physics by Thijssen.
- Fractal-dimension -- Show the non-linear and self-similar behavior of the Duffing oscillator and diffusion-limited aggregation and find the fractal dimension in each case.
- Scattering-cross-section -- Generate a plot showing the total cross-section as a function of the energy for a Lennard–Jones potential describing the H-Kr system.
- Eigensolver -- Use the Cholskey decomposition to solve a linear system of equations and solve the eigenvalue equation of a Hamiltonian.
- Helium-ground-state -- Calculate the ground state of the Helium atom using the Hartree-Fock method.
- DFT-Hydrogen-atom -- Use density functional theory to find the radial wave function of the Hydrogen atom.
- Verlet-Molecular-Dynamics -- Molecular dynamics simulation using the velocity-Verlet algorithm.
- 2D-Ising -- Monte Carlo simulation of a 2D Ising model of size 40x40 with Metropolis-Hastings algorithm to show phase transition.