WARNING: the codes found here have been written for Octave 2.1
Here is a collection of the scripts for the numerical simulation of the Klein-Gordon field subject to certain nonlinear interactions. The complex-valued U(1)-invariant Klein-Gordon field could be thought of as a string in three dimensions, drawn to its equilibrium position by a smooth family of harmonic oscillators.All the scripts are written for Octave and could be run with, e.g.,
octave one-oscillator.mThe visualization is done with the aid of GNUPlot. You need to have both Octave and GNUPlot installed.
The Klein-Gordon field on the real line is approximated by the finite Klein-Gordon field on a finite interval, with the absorbing boundary conditions (chosen as du/dx=-du/dt at the right end and du/dx=du/dt at the left end).
Both Octave and GNUPlot are freely available software packages (Octave is GPL-licensed while GNUPlot is a freeware). Both are readily available for most common operating systems such as Linux.
Written by
Andrew Comech.
The author was partially supported by
National Science Foundation
under N.S.F. Research Grants DMS-0200880, 0434698, 0621257