Hans Jarett Ong
Lab Note2018

Computational Physics Simulations

Tiny C++ numerical simulations from undergraduate computational physics: Newton fractals, orbital mechanics, and the heat equation.

C++Numerical MethodsPhysicsFractals

A collection of small C++ numerical programs written for an undergraduate computational physics course. Most of the programs render directly using the legacy graphics.h BGI library, so compiling and running them interactively is easiest on Windows environments configured with WinBGIm.

Chaos in Newton’s Method

Newton fractal basin of attraction visualization

Circular Planetary Orbit

Numerical integration of a circular planetary orbit

Perihelion Precession of Mercury

Simulation of Mercury's perihelion precession

Heat Equation (Steady State)

Steady-state numerical solution of the 2D heat equation

Heat Equation (Time-Evolving)

Time-evolving numerical solution of the 2D heat equation