This is the web version of EJS interface
EJS version 4.3.7
  1. Author=Fu-Kwun Hwang - Professor
  2. Abstract=http://www.phy.ntnu.edu.tw/ntujava/
  3. CaptureTools=false
  4. DataTools=false
  5. LanguageTools=false
  6. EmersionSupport=false
  7. AppletColSupport=false
  8. UseInterpreter=true
    NameValueTypeDimension
    NameValueTypeDimension

    Evol Page

    Indep. Var. Increment
    d x /dt=vx
    d vx /dt=(Fx=-k*(x-xmin-L))/m
    SolverRungeKutta AbsoluteTolerance=0.00001

    關係式

    Fx=-k*(x-xmin-L); K=m*vx*vx/2; U=k*(x-xmin-L)*(x-xmin-L)/2;
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double,double
    title="Frame"
    layout=border
    visible=true
    size="631,566"
    position=south
    layout=HBOX
    borderType=LOWERED_ETCHED
    text="show"
    variable=showV
    text="V"
    variable=showF
    text="F"
    variable=m
    minimum=1.0
    maximum=10.0
    format="m=0.0"
    variable=k
    minimum=10.0
    maximum=30.0
    format="k=0.0"
    variable=L
    minimum=xmax/2
    maximum=xmax*1.4
    format="Original Length L=0.0"
    layout=VBOX
    variable=_isPaused
    imageOn=/org/opensourcephysics/resources/controls/images/play.gif
    actionOn=_play()
    imageOff=/org/opensourcephysics/resources/controls/images/pause.gif
    actionOff=_pause()
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    position=center
    layout=VBOX
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    x=xmin
    y=y
    sizeX=x-xmin
    sizeY=0
    radius=size
    loops=20
    x=xmin
    y=y
    sizeX=L
    sizeY=size*2
    style=RECTANGLE
    elementposition=WEST
    lineColor=192,192,192,128
    fillColor=192,192,192,128
    x=x
    y=y
    sizeX=size
    sizeY=size
    enabledPosition=ENABLED_X
    lineColor=DARKGRAY
    fillColor=LIGHTGRAY
    x=x
    y=y
    sizeX=vx
    sizeY=0
    scalex=Vscale
    visible=showV&&vx!=0
    enabledPosition=ENABLED_X
    lineColor=RED
    fillColor=RED
    x=x
    y=y
    sizeX=Fx
    sizeY=0
    scalex=Fscale
    visible=showF && Fx!=0
    lineColor=BLACK
    fillColor=BLACK
    x=x+vx*Vscale
    y=y+size
    pixelSize=true
    visible=showV
    text="Vx"
    lineColor=RED
    fillColor=RED
    x=x+Fx*Fscale
    y=y-size
    pixelSize=true
    visible=showF
    text="Fx"
    lineColor=BLACK
    fillColor=BLACK
    autoscaleX=true
    autoscaleY=true
    title="kinetic energy/potential energy"
    titleX="t"
    titleY="K+U"
    x=t
    y=K
    maxpoints=npt
    active=_isPlaying()
    norepeat=true
    connected=true
    color=RED
    x=t
    y=U
    maxpoints=npt
    active=_isPlaying()
    norepeat=true
    connected=true
    color=BLUE