This is the web version of EJS interface
EJS version 4.2.7
  1. CaptureTools=true
  2. DataTools=true
  3. LanguageTools=true
  4. EmersionSupport=true
  5. UseInterpreter=true
  6. AuxiliaryFiles=./rotateDisk_pkg/rotateDisk_zh.properties;_data/reset.gif;_data/pause.gif;_data/play.gif;
  7. DetectedFiles=_data/pause.gif;_data/play.gif;_data/reset.gif;
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    shell=!solid; if(solid){ clr=lightgray; kw=5./2.; }else{ clr=gray; kw=3./2; } kv=1.; t=0; x=xmin+range/2; vx=vx0; omega=omega0; clrv=red; clrw=green; F=m*g*mu;

    Evol Page

    Indep. Var. Increment
    d x /dt=vx
    d vx /dt=-kv*g*mu
    d cta /dt=omega
    d omega /dt=kw*mu*g/R
    SolverRungeKutta AbsoluteTolerance=0.001

    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=


    動作

    FixRel Page

    if(x<xmin || x>xmax || (vx==0 && t>1.2))_pause();
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double,double,double
    title="Frame"
    layout=border
    visible=true
    location="54,9"
    size="746,539"
    position=south
    layout=HBOX
    borderType=LOWERED_ETCHED
    background=DARKGRAY
    foreground=CYAN
    variable=R
    minimum=range/5
    maximum=range/2
    format="R=0.0"
    enabled=_isPaused()
    action=_initialize()
    variable=omega
    minimum=-120
    maximum=300
    format="omega_i=0.0"
    enabled=_isPaused()
    action=_initialize()
    variable=mu
    value=0.29997999999999997
    minimum=0.1
    maximum=1.2
    format="mu=0.0"
    ticks=12
    closest=true
    enabled=_isPaused()
    action=_initialize()
    variable=vx0
    minimum=0.0
    maximum=200
    format="vx_i=0.0"
    enabled=_isPaused()
    action=_initialize()
    layout=GRID:0,1,0,0
    variable=_isPaused
    size="90,35"
    imageOn="_data/play.gif"
    actionOn=_play()
    imageOff="_data/pause.gif"
    actionOff=_pause()
    image="_data/reset.gif"
    action=_reset()
    size="90,35"
    layout=GRID:0,1,0,0
    foreground=192,255,64
    position=center
    variable=solid
    text="solid sphere"
    enabled=_isPaused()
    action=_initialize()
    foreground=192,255,64
    variable=shell
    text="thin shell"
    enabled=_isPaused()
    action=_initialize()
    foreground=192,255,64
    position=center
    layout=border
    position=north
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    size="0,100"
    background=BLACK
    x=x
    y=y
    sizeX=size
    sizeY=size
    transformation=-cta
    style=WHEEL
    lineColor=BLACK
    fillColor=clr
    lineWidth=stroke
    x=x
    y=y
    sizeX=vx
    sizeY=0
    lineColor=255,128,0
    fillColor=255,128,0
    x=xmin
    y=ymin
    sizeX=xmax-xmin
    sizeY=0
    lineColor=255,192,0
    lineWidth=stroke
    x=x
    y=ymin+R/5
    sizeX=-F
    sizeY=0
    visible=F!=0
    lineColor=128,255,0
    fillColor=128,255,0
    lineWidth=stroke
    position=center
    autoscaleX=true
    autoscaleY=true
    pressaction=_view.resetTraces()
    =