Spring, 2017

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.

- 17-Apr-2017 --- Office hours will be 12:30pm to 2:30pm on Monday, April 17 in Sm1094.
- 03-Apr-2017 --- April 21 is our last class period. Projects are due at the end of Monday, May 1. Session guides and homework can be turned in for credit until 5pm on Thursday, April 27.
- 03-Apr-2017 --- Assignment #4, which is just a progress report on your project, is available under Assigned problems, hints, and solutions.
- 03-Apr-2017 --- Office hours will be 12:30pm to 2:30pm on Monday in Sm1094.
- 10-Mar-2017 --- Try out the "Fourier Scribble" Mathematica notebook fourier_scribble_mario_v2.nb. Evaluate the notebook, scroll down to the bottom, and use your mouse to "draw" a function in the top box. By repeatedly hitting "+", you'll build up your function by adding sine and cosine functions.
- 08-Mar-2017 --- To access the Physics Department's linux machines from Smith 1094 or from home, you'll need to use VPN. Here are two relevant links (thanks to Terry Bradley): Getting Started on the VPN Website (a/k/a, how to use the web portal version of VPN) and How Do I Connect to the ASC VPN Using Cisco and Duo? (a/k/a, installing the client for that method of VPN)? You also need to be set up to use duo authentication through BuckeyePass. See BuckeyePass - Registering Your Account for instructions on doing this.
- 19-Feb-2017 --- It's time to start thinking about a project.
You can build on one of the activities from class (many interesting ones are still
to come!), work on something related to your research, or try something completely
different.
The eTextBook
*A Survey of Computational Physics*by Landau, Paez, and Bordeianu is a good source of projects (e.g., any of the Explorations). There is a project idea list (*your*preliminary idea will be requested as part of PS#3) from past years to get ideas. Note the very wide range of suggestions. - 28-Jan-2017 --- To change the gnuplot y-axis in logscale to show powers of
10 rather than decimals, use the command:
`set format y "10^{%L}"`It is used in this updated version of`quad_eq.plt`. For other formatting fine-tuning in gnuplot, see this "not so FAQ".

- Course description and info, and gameplan. [For your info: 2016 course pages.]
- Setting up your own computer for use in 6810.
- Class meetings in Sm1094
- Assignments
- General handouts and computer codes
- Computational physics humor

The following table will be filled in with materials and references as we proceed.
The *current* links --- shown in light green --- have "before" links that should
be read before class, "in-class" materials that we will use in our
two-hour meeting, and "extra" references that you can use to follow up.

Return to Contents

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

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/26/17 | #1a [pdf] | hints, suggestions, etc. |

02/01/17 | #1b [pdf] | hints, suggestions, etc. |

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

03/10/17 | #3 [pdf] | hints, suggestions, etc. |

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

Return to Contents

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

12-Jan-2016 | C++ Options (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. |

11-Jan-2016 | Unix Commands (pdf) | "Some Useful Unix Commands" based on various web summaries |

06-Jan-2014 | Gnuplot 4.6 manual (pdf) | "Gnuplot 4.6: An Interactive Plotting Program" |

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

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

12-Jan-2010 | Gnuplot plot files (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. |

01-Apr-2008 | Tricky Integrals (pdf) | "Integrals with Singularities or Discontinuous Derivatives" |

09-Jan-2011 | Round-off Errors (pdf) | A simple empirical investigation of the distribution of round-off errors. |

07-Mar-2008 | GDB Debugger (pdf) | "Using the GDB Debugger" -- A tutorial by example. |

10-Mar-2011 | Gnuplot 3d plots (pdf) | "Three-Dimensional Plots with Gnuplot" |

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 |
---|---|---|

23-Sep-2011 | Calculate area | A simple Mathematica notebook defining a function to calculate the area of a circle, including forcing numerical output and multiple definitions of a function with different numbers of arguments. Also, making it into a program. |

23-Sep-2011 | Defining n! | Mathematica notebook with many ways to define n!. |

23-Sep-2011 | Rolling dice | Mathematica notebook that simulates the rolling of dice, where the outcome is a random integer from 1 to 6. Histograms are generated for different numbers of "trials" (i.e., throws of the dice), providing visualization of how the fluctuations scale with the number of trials. |

25-Sep-2011 | 3D Square Well | Mathematica notebook to find the eigenvalues of a spherical three-dimensional square well by matching solutions. |

12-Feb-2009 | Nonlinear Differential Equations | Mathematica notebook analyzing the Duffing equation. |

12-Feb-2009 | Nonlinear Differential Equations: Pendulum | Mathematica notebook analyzing the physical pendulum. |

04/18/02 | Fourier Transform Pictures | Mathematica notebook showing in pictures how to project Fourier coefficients. |

04/18/02 | Square Wave | Mathematica notebook showing a square wave being built from sine waves. |

Return to Contents

- Classic xkcd cartoons on labeling your axes and pointers (one of our goals is to understand the latter cartoon :).
- "Medical researcher discovers integration, gets 75 citations" (cf. the trapezoid rule).
- Xqcd presents one (cynical) view of how to write good code. We plan to do better!
- More Xqcd on Python, Real Programmers (use emacs), Compiling, Goto, Compiler Complaint (about pointers)
- The Raving, A poem for parallel programmers
- Software Engineering

Return to Contents

Your comments and suggestions are appreciated.

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

Last modified: 07:46 am, April 22, 2017.

furnstahl.1@osu.edu