Skip to content

Fortran95 code submissions for solving Physics problems numerically.

License

Notifications You must be signed in to change notification settings

Anantha-Rao12/ComPhys

Repository files navigation

Computational Physics (PHY453) 2021

This repository contains the assignments and solutions for the 3-credit Computational Physics (PHY453) course as part of the Physics major track at IISER Pune in Spring 2021. Video lectures of an older version of the same course are available on the National Programme on Technology Enhanced Learning (NPTEL) platform and can be viewed here. The course includes different modules dedicated to solving problems in physics numerically.

All the code to solve problems are written in fortran95 in a readable format. We then use python and xmgrace for plotting and analysis. The repository contains the assignments, while the Solutions directory contains the code I wrote to solve the assignments. It also has most of the solution data files along with a README.pdf for each assignment.

Currently, I do not actively maintain this repository but will try my best to answer any queries. Feel free to ping me at @anantharao00. You can free to fork or star or download this repository (:p)

Assignment 0 : Introduction to Fortran

Assignment 1 : Numerical Integration (Single Variable)

  • Topics: Trapezoidal Method
  • Assignment: ComPhys/assgn01.pdf
  • Solutions: ComPhys/Solutions/assgn01_solns/
  • My submission: here

Assignment 2 : Numerical Integration (Multi Variable)

  • Topics: Random number generators in fortran, Monte-Carlo methods (Brute force and importance sampling)
  • Assignment: ComPhys/assgn02.pdf
  • Solutions: ComPhys/Solutions/assgn02_solns/
  • My submission: here

Assignment 3 : MonteCarlo Simulations I

  • Topics: 3D Ising Model, Phase Transitions
  • Assignment: ComPhys/assgn03.pdf
  • Solutions: ComPhys/Solutions/assgn03_solns/
  • My submission: here

Assignment 4 : MonteCarlo Simulations II

  • Topics: 3D Ising Model, Thermodynamic quantities, Binder cumulants
  • Assignment: ComPhys/assgn04.pdf
  • Solutions: ComPhys/Solutions/assgn04_solns/
  • My submission: here

Assignment 5 : Differential Equations I

  • Topics: Euler, Improved Euler, RK4 methods
  • Assignment: ComPhys/assgn05.pdf
  • Solutions: ComPhys/Solutions/assgn05_solns/
  • My submission: here

Assignment 6 : Differential Equations II

  • Topics: Partial differential equations with boundry conditions
  • Assignment: ComPhys/assgn06.pdf
  • Solutions: ComPhys/Solutions/assgn06_solns/
  • My submission: here

Assignment 7 : Solving the Schrodinger Equation

  • Topics: Numerov Algorithm and the Variational Principle
  • Resource: ~Giannozz
  • Assignment: ComPhys/assgn07.pdf
  • Solutions: ComPhys/Solutions/assgn07_solns/
  • My submission: here

Assignment 8 : Molecular Dynamics Simualtions

  • Topics: Velocity Verlet Algorithm, Thermostat, Periodic Boundry conditions
  • Assignment: ComPhys/assgn08.pdf
  • Solutions: ComPhys/Solutions/assgn08_solns/
  • My submission: here

Thank you !

References

  1. NPTEL :: Physics - NOC:Computational Physics. (n.d.). NPTEL. https://nptel.ac.in/courses/115/106/115106118/
  2. DeVries, P. L., & Hamill, P. (1995). A first course in computational physics.