Spring, 2014

Welcome to the Physics 6810 Computational Physics home page!

URL: http://www.physics.ohio-state.edu/~ntg/6810/compphys.php

The course information is available here plus lots of supplementary
info. Please check this page regularly.

- 07-Apr-2014 --- Session 14 notes are available below under 1077 Sessions.
- 07-Apr-2014 --- Two references for least-squares fitting:
*Estimating Errors in Least-Squares Fitting*and*Statistics*(from the Particle Data Group). - 02-Apr-2014 --- Check out
*An introduction to Monte Carlo methods*by Jean-Charles Walter and Gerard Barkema, just posted on the arXiv. - 31-Mar-2014 --- Assignment #4, which is just a progress report on your project, is available under Assigned problems, hints, and solutions.
- 31-Mar-2013 --- Projects are due at the end of Tuesday, April 29 (unless you are a graduating senior, in which case I need everything by noon on Monday, April 28). You should place codes, makefiles, plots, etc. (just like for the problem sets) into a Dropbox folder shared with Prof. Furnstahl (call it lastname_6810project). Include an explanation of how it all fits together in a separate file or in comments of the codes.
- 31-Mar-2013 --- The last day that session guides and homeworks will be accepted (including upgrades) is Thursday, April 24.
- 02-Mar-2014 --- Other good sources of project ideas are the
exercises at the end of the chapter in the
2013 Hjorth-Jensen lectures. For example, differential equation
problems like exercise 8.1 on neutron stars, a matrix solution
of the Schrodinger equation for two electrons in a
three-dimensional harmonic oscillator with Coulomb interaction (exercise 7.1), more Schrodinger equation projects in the chapter 9 exercises,
*many*Monte Carlo applications in Chapters 11-14, and Hartree-Fock in Chapter 15. - 02-Mar-2014 --- A
partial project list from
past years is available (with new updates soon).
The eTextBook
*A Survey of Computational Physics*by Landau, Paez, and Bordeianu is a good source of projects (e.g., any of the Explorations). - 05-Jan-2014 --- Xqcd presents one (cynical) view of how to write good code. Hopefully we can do better!

- Course description and info, and gameplan [For your info: last year's course pages.]
- Assignments
- 1077 Sessions
- General handouts and computer codes

Copies of any handouts are available from Prof. Furnstahl or online below. After the first class, please read the session notes before that session meets.

Date of Session | Guide | Notes | Packed Files | Slides | Handouts |
---|---|---|---|---|---|

01/08/14 | Session 1 | notes [pdf] | session01.zip | slides [pdf] | Printouts of "area" code [pdf]; Unix commands [pdf]; C++ options [pdf]; GSL intro [pdf]; other code printouts [pdf] |

01/13/14 | Session 2 | notes [pdf] | session02.zip | slides [pdf] | Gnuplot basics [pdf]; Gnuplot tutorial; (pdfs of codes are in doc subdirectory of session02.zip) |

01/20/14 | Session 3 | notes [pdf] | session03.zip | slides [pdf] | Fitting with Gnuplot [pdf]; Formatting with C++ Manipulators (UIC notes) [pdf]; integ_test.cpp and integ_routines.cpp [pdf] printouts; derivative_test_simple.cpp [pdf] printout; |

01/27/14 | Session 4 | notes [pdf] | session04.zip | slides [pdf] | Integrals with Singularities [pdf]; printouts for pointer_test.cpp [pdf], derivative_test.cpp [pdf], qags_test.cpp [pdf], eigen_test.cpp [pdf] |

02/03/14 | Session 5 | notes [pdf] | session05.zip | slides [pdf] | Random round-off? [pdf]; nan_test.cpp [pdf]; eigen_tridiagonal.cpp [pdf]; eigen_basis.cpp [pdf]; and harmonic_oscillator.cpp [pdf] printouts |

02/10/14 | Session 6 | notes [pdf] | session06.zip | slides [pdf] | simpson_cosint_openmp.cpp printout [pdf], diffeq_routines.cpp [pdf], diffeq_test.cpp [pdf], and new eigen_tridiagonal_class.cpp (with class definition) [pdf] printouts |

02/17/14 | Session 7 | notes [pdf] | session07.zip | slides [pdf] | diffeq_oscillations.cpp [pdf]; eigen_basis_class.cpp (first pass) [pdf] |

02/24/14 | Session 8 | notes [pdf] |
session08.zip
session08_linux.zip |
slides [pdf] | Plots of damped oscillations [pdf]; filename_test.cpp printout [pdf]; GnuplotPipe class printout [pdf]; diffeq_pendulum.cpp printout [pdf]; nonlinear Mathematica notebook; |

03/03/14 | Session 9 | notes [pdf] | session09.zip | slides [pdf] | Circle class and test printout [pdf]; private_vs_public printout [pdf] GDB debugger quick reference [pdf] "Using the GDB debugger" [pdf] |

03/10/14 | Session 10 | notes [pdf] | session10.zip | slides [pdf] | GslSpline printout [pdf]; ode_test.cpp printout [pdf]; GSL interpolation [pdf]; Pendulum Power Spectra [pdf] |

03/17/14 | Session 11 | notes [pdf] | session11.zip | slides [pdf] | Pendulum Power Spectra [pdf]; ode_test_class.cpp and classes printout [pdf]; multifit_test.cpp printout [pdf]; multimin_test.cpp printout [pdf]; GSL documentation on nonlinear least squares fitting; GSL documentation on multidimensional minimization |

03/27/14 | Session 12 | notes [pdf] | session12.zip | slides [pdf] | man pages for random, urandom [pdf]; gaussian_random.cpp printout [pdf]; random_walk.cpp printout [pdf]; RandomWalk_test.cpp printout [pdf]; input_check.cpp printout [pdf]; factorial_debug.cpp printout [pdf]; |

04/01/14 | Session 13 | notes [pdf] | session13.zip | slides [pdf] | sampling_test.cpp printout [pdf]; ising_model.cpp printout [pdf]; ising_opt.cpp printout [pdf]; |

04/09/14 | Session 14 | notes [pdf] | session14.zip | autocorrelation_test.cpp printout [pdf]; variational_SHO.cpp printout [pdf] |

Return to Contents

A complete copy of M. Hjorth-Jensen's 2013 notes on "Computational Physics" is available as a PDF file.

Class Period | Reading | Topic |
---|---|---|

01/06/14 | M. Hjorth-Jensen, Preface (pdf) and Table of Contents (pdf) | Preface and Table of Contents |

01/06/14 | M. Hjorth-Jensen, Ch. 1 (pdf) | Overview: Why C++ and Designing programs. |

01/08/14 | M. Hjorth-Jensen, Ch. 2 (pdf) | C++ (and Fortran) and Representation of Numbers. |

01/15/14 | M. Hjorth-Jensen, Ch. 3 (pdf) | Numerical Differentiation (read sections 3.1 and 3.2.2 and also look at 3.3 on classes). |

01/15/14 | M. Hjorth-Jensen, Ch. 5 (pdf) | Numerical Integration. |

01/29/14 | M. Hjorth-Jensen, Ch. 6 (pdf) and Ch. 7 (pdf) | Linear Algebra and Eigensystems. |

02/12/14 | M. Hjorth-Jensen, Ch. 8 (pdf) | Differential Equations. |

03/17/14 | M. Hjorth-Jensen, Ch. 3.2 (pdf) | Numerical Interpolation, Extrapolation and Fitting of Data. |

03/24/14 | M. Hjorth-Jensen, Ch. 11 (pdf) | Outline of the Monte-Carlo Strategy |

03/26/14 | M. Hjorth-Jensen, Ch. 12 (pdf) | Random walks and the Metropolis Algorithm |

04/07/14 | M. Hjorth-Jensen, Ch. 13 (pdf) | Monte Carlo Methods in Statistical Physics |

04/07/14 | M. Hjorth-Jensen, Ch. 14 (pdf) | Quantum Monte-Carlo Methods |

04/14/14 | M. Hjorth-Jensen, Ch. 15 (pdf) | Many-body approaches to studies of electronic systems |

Return to Contents

Click on the problem set number to get a copy of the assignment. Note that there is a "target date" rather than a "due date". You need to make progress by then, but I anticipate it will take some of you longer to fully complete the assignment (after getting feedback).

Target Date | Assignment | Comments |
---|---|---|

01/24/14 | #1a [pdf] | hints, suggestions, etc. |

01/28/14 | #1b [pdf] | hints, suggestions, etc. |

02/15/14 | #2 [pdf] | hints, suggestions, etc. |

03/21/14 | #3 [pdf] | hints, suggestions, etc. |

04/10/13 | #4 [pdf] | Progress report on your project. |

Return to Contents

Last Updated | Handout | Comments |
---|---|---|

30-Dec-2011 | C++ Options (ps) (pdf) | "Recommended C++ Options" -- options for g++ (GNU compiler) and icpc (Intel compiler) based on the recommendations in the GSL Reference manual. |

27-Dec-2010 | GSL Introduction (pdf) | GNU Scientific Library description from the online reference manual. |

30-Dec-2011 | Unix Commands (pdf) | "Some Useful Unix Commands" based on various web summaries |

01-Jan-2014 | Gnuplot basics (pdf) | "Plotting Data from a File with Gnuplot" |

28-Mar-2008 | Gnuplot fitting (ps) (pdf) | "Finding the Slope of XY Data from a File with Gnuplot" |

12-Jan-2010 | Gnuplot plot files (ps) (pdf) | "Using a Plot File with Gnuplot" |

12-Jan-2012 | Using X-Win32 (pdf) | Instructions for using X-Win32 on the Physics Department computers. |

01-Jan-2004 | C++ Manipulators (pdf) | "Formatting with Manipulators" -- brief guide found on the web. |

16-Nov-2003 | Bash Prompt HOWTO (pdf) | Creating and controlling terminal and xterm Bash prompts, compiled by Giles Orr. |

Return to Contents

Return to Contents

The Mathematica example notebooks used in the graduate Math Methods course are available. Take a look!

If the notebook doesn't open automatically in Mathematica when you click on the link, "right click" to save it first (to the Desktop or a session folder) and start it from within Mathematica.

Last Revised | Notebook | Comments |
---|

Return to Contents

Your comments and suggestions are appreciated.

[OSU Physics] [Math and Physical Sciences] [Ohio State University]

Last modified: 08:01 am, January 12, 2016.

furnstahl.1@osu.edu