This is the web version of EJS interface
EJS version 4.1
  1. Title=Free Fall
  2. Author=Wolfgang Christian
  3. Keywords=mechanics, constant acceleration
  4. Level=beginner
  5. AuxiliaryFiles=./FreeFall/;
  6. DetectedFiles=./FreeFall/FreeFall.html;./FreeFall/FreeFall_activ.html;./FreeFall/FreeFall_model.html;
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Evol Page

    Indep. Var. Increment
    d y /dt=vy
    d vy /dt=-g -(k/mass)*vy
    SolverMidPoint

    Name:E,active=E,條件:Method:E,(誤差範圍E),stopatEvent=E
    E


    動作
    E

    Name:t,active=t,條件:Method:t,(誤差範圍t),stopatEvent=t
    t


    動作
    t

    Name:,active=,條件:Method:,(誤差範圍),stopatEvent=


    動作

    energy

    KE = 0.5*mass*vy*vy; PE = mass*g*y; TE = KE +PE;
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    title=Free Fall
    layout=BORDER:0,0
    visible=true
    location="0,0"
    size="747,428"
    position=center
    autoscaleX=true
    autoscaleY=true
    minimumY=0
    title="Energy (J) vs Time (s)"
    showAxes=true
    axesType=CARTESIAN2
    titleX="time (s)"
    titleY="Energy (J)"
    x=t
    y=KE
    norepeat=true
    connected=true
    color=MAGENTA
    style=ELLIPSE
    secondaryColor=MAGENTA
    x=t
    y=PE
    norepeat=true
    connected=true
    color=BLUE
    style=ROUND_RECTANGLE
    secondaryColor=BLUE
    x=t
    y=TE
    norepeat=true
    connected=true
    color=BLACK
    style=RECTANGLE
    secondaryColor=BLACK
    position=east
    autoscaleX=false
    autoscaleY=false
    minimumX=-1.0
    maximumX=1.0
    minimumY=-0.4
    maximumY=2
    square=true
    xFormat=null
    BRmessage="time="+_format(t,"0.00")
    x=x
    y=y
    sizex=.2
    sizey=.2
    enabled=true
    pressaction=_pause()
    dragaction=x=0;y=Math.max(0,y)
    action=x=0;
    x=0
    y=-0.2
    sizex=1
    sizey=0.2
    enabled=false
    style=RECTANGLE
    secondaryColor=black
    color=red
    x=x
    y=y
    sizex=0
    sizey=vy*0.1
    enabled=false
    position=south
    layout=flow:center,0,0
    borderType=LOWERED_ETCHED
    variable=_isPaused
    tooltip="Start and stop the simulation."
    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/step.gif
    action=_step()
    tooltip="Advance the simulation."
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    tooltip="Reset the simulation."
    position=west
    layout=VBOX
    position=center
    variable=t
    format="t = 0.00"
    variable=x
    format="x = 0.00"
    variable=y
    format="y = 0.00"
    variable=g
    format="g = 0.00"
    variable=coef_of_restitution
    format="e = 0.0"
    variable=vy
    format="vy = 0.00"
    variable=k
    format="k = 0.00"
    variable=mass
    format="m = 0.00"
    variable=KE
    format="KE = 0.0"
    variable=PE
    format="PE = 0.0"
    variable=TE
    format="TE = 0.0"