|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.controls.AbstractAnimation
org.opensourcephysics.controls.AbstractSimulation
org.opensourcephysics.sip.ch08.md.LJParticlesApp
public class LJParticlesApp
LJParticlesApp simulates a two-dimensional system of interacting particles via the Lennard-Jones potential.
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 | |
---|---|
LJParticlesApp()
|
Method Summary | |
---|---|
void |
doStep()
Does a simulation step and appends data to the views. |
static XML.ObjectLoader |
getLoader()
Returns an XML.ObjectLoader to save and load data for this program. |
void |
initialize()
Initializes the model by reading the number of particles. |
static void |
main(java.lang.String[] args)
Starts the Java application. |
void |
reset()
Resets the LJ model to its default state. |
void |
resetData()
Resets the LJ model and the data graphs. |
void |
startRunning()
Reads adjustable parameters before the program starts running. |
void |
stop()
Prints the LJ model's data after the simulation has stopped. |
Methods inherited from class org.opensourcephysics.controls.AbstractSimulation |
---|
enableStepsPerDisplay, getControl, getStepCounter, getStepsPerDisplay, initializeAnimation, resetAnimation, run, setControl, setStepsPerDisplay, start, startAnimation, startSimulation, stepAnimation, 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 |
---|
public LJParticlesApp()
Method Detail |
---|
public void initialize()
initialize
in class AbstractSimulation
public void doStep()
doStep
in class AbstractAnimation
public void stop()
stop
in class AbstractSimulation
public void startRunning()
startRunning
in class AbstractSimulation
public void reset()
reset
in class AbstractSimulation
public void resetData()
public static XML.ObjectLoader getLoader()
public static void main(java.lang.String[] args)
args
- command line parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |