org.opensourcephysics.sip.ch16
Class QMWalkApp

java.lang.Object
  extended by org.opensourcephysics.controls.AbstractAnimation
      extended by org.opensourcephysics.controls.AbstractSimulation
          extended by org.opensourcephysics.sip.ch16.QMWalkApp
All Implemented Interfaces:
java.lang.Runnable, Animation, Simulation

public class QMWalkApp
extends AbstractSimulation

QMWalkApp computes and displays the ground state of a quantum mechanical system using the random walk Monte Carlo algorithm.


Field Summary
 
Fields inherited from class org.opensourcephysics.controls.AbstractSimulation
control, showStepsPerDisplay, stepCounter, stepsPerDisplay
 
Fields inherited from class org.opensourcephysics.controls.AbstractAnimation
animationThread, decimalFormat, delayTime, mainFrame
 
Constructor Summary
QMWalkApp()
           
 
Method Summary
 void doStep()
          One Monte Carlo step
 void initialize()
          Calculates the ground state wave function and displays the result.
static void main(java.lang.String[] args)
          Comand line entry point.
 void reset()
          Resets the calculation.
 void resetData()
          Resets the accumulated data.
 
Methods inherited from class org.opensourcephysics.controls.AbstractSimulation
enableStepsPerDisplay, getControl, getLoader, getStepCounter, getStepsPerDisplay, initializeAnimation, resetAnimation, run, setControl, setStepsPerDisplay, start, startAnimation, startRunning, startSimulation, stepAnimation, stop, stopAnimation, stopRunning, stopSimulation
 
Methods inherited from class org.opensourcephysics.controls.AbstractAnimation
addChildFrame, clearChildFrames, getChildFrames, getDelayTime, getMainFrame, getOSPApp, isRunning, setDelayTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.opensourcephysics.controls.Simulation
isRunning
 

Constructor Detail

QMWalkApp

public QMWalkApp()
Method Detail

initialize

public void initialize()
Calculates the ground state wave function and displays the result.

Overrides:
initialize in class AbstractSimulation

doStep

public void doStep()
One Monte Carlo step

Specified by:
doStep in class AbstractAnimation

reset

public void reset()
Resets the calculation.

Overrides:
reset in class AbstractSimulation

resetData

public void resetData()
Resets the accumulated data.


main

public static void main(java.lang.String[] args)
Comand line entry point.

Parameters:
args -