Software for UB's Computational Physics class.
This updates the now-deprecated project of PHY410.
This software package is to demonstrate the example code in the UB Computational Physics class, PHY 410/505 and 411/506, developed by Prof. Richard Gonsalves (and updated by Prof. Salvatore Rappoccio, and Prof. Tim Thomay). This is now updated This also includes software from the following sources :
- Matrix class (Bjarne Stroustrup, Texas A&M University)
- FFT implementations (http://rosettacode.org/wiki/Fast_Fourier_transform)
- Numerical Recipes in C (http://apps.nrbook.com/c/index.html)
-
---> Also some translated to python
- http://pistol.googlecode.com/svn-history/r3/Pistol/ConjGrad.py
-
---> this translates NR routine "mnbrak" to python
- Numerical Methods for Physics (Alejandro L. Garcia) (http://www.algarcia.org/nummeth/Programs2E.html)
- Install Docker: https://docs.docker.com/install/ (execute once)
- Open your Terminal application.
- Find a preferred directory somewhere and make a "results" folder:
mkdir results
- Get the
runDocker.sh
script via your preferred method (either download from web browser, or usewget
orcurl
... here we will demonstrate with wget)
wget https://raw.githubusercontent.com/ubsuny/CompPhys/master/runDocker.sh
- Change the permission:
chmod a+x runDocker.sh
- Get the code for CompPhys:
cd results/
git clone https://github.com/ubsuny/CompPhys.git
cd ../
- Execute docker image (execute every time you log in):
- With jupyter:
./runDocker.sh srappoccio/compphys:latest 0
- With terminal:
./runDocker.sh srappoccio/compphys:latest 1
- With jupyter:
- Your homework should go into the "results" directory you already created or it will be overwritten when the Docker image quits.