This is the web version of EJS interface
EJS version 4.2.7
  1. Author=Fu-Kwun Hwang - Dept. of Physics, National Taiwan Normal Univ.
  2. Abstract=hwang@phy.ntnu.edu.tw
  3. CaptureTools=true
  4. DataTools=true
  5. LanguageTools=true
  6. EmersionSupport=false
  7. UseInterpreter=true
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    //"z:"+c1+" & x:"+c2+" & z:"+c3 _view.trail3D.clear(); _view.traceU.clear();

    Evol Page

    Indep. Var. Increment
    d phi /dt=vphi
    d cta /dt=omega
    d omega /dt=-g*Math.cos(cta)/r
    SolverMidPoint AbsoluteTolerance=0.001

    FixRel Page

    x=(R+r*Math.cos(cta))*Math.cos(phi); y=(R+r*Math.cos(cta))*Math.sin(phi); z=r*Math.sin(cta); vx=-(R+r*Math.cos(cta))*Math.sin(phi)*vphi-r*Math.sin(cta)*Math.cos(phi)*omega; vy=(R+r*Math.cos(cta))*Math.cos(phi)*vphi-r*Math.sin(cta)*Math.sin(phi)*omega; vz=r*Math.cos(cta)*omega; U=m*g*z;
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double,double,double
    title="Frame"
    layout=border
    visible=true
    location="14,5"
    size="800,600"
    position=south
    layout=HBOX
    borderType=LOWERED_ETCHED
    background=128,64,0
    variable=r
    minimum=xmax/10
    maximum=R
    format="r=0.0"
    enabled=_isPaused()
    action=_initialize()
    foreground=192,255,0
    variable=R
    minimum=xmax/4
    maximum=xmax*1.2
    format="R=0.0"
    enabled=_isPaused()
    action=_initialize()
    foreground=192,255,0
    variable=m
    minimum=1.0
    maximum=10.0
    format="m=0.0"
    ticks=10
    closest=true
    enabled=_isPaused()
    action=_initialize()
    foreground=192,255,0
    layout=GRID:0,1,0,0
    variable=_isPaused
    textOn="Play"
    imageOn=/org/opensourcephysics/resources/controls/images/play.gif
    actionOn=_play()
    foreground=128,0,128
    background=0,0,0
    textOff="Pause"
    imageOff=/org/opensourcephysics/resources/controls/images/pause.gif
    actionOff=_pause()
    foregroundOff=128,0,128
    backgroundOff=BLACK
    text="Reset"
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    background=BLACK
    foreground=128,0,128
    variable=T
    minimum=1.0
    maximum=10.0
    format="T=0.0s"
    ticks=10
    closest=true
    enabled=_isPaused()
    dragaction=vphi=2*pi/T;
    foreground=255,128,0
    position=center
    layout=GRID:1,0,0,0
    position=center
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    minimumZ=zmin
    maximumZ=zmax
    cameraAzimuth=0.060000000000000005
    cameraAltitude=0.42000000000000004
    cameraFocusX=0.0
    cameraFocusY=0.0
    cameraFocusZ=0.0
    cameraRotation=0.0
    cameraDistanceToScreen=range*2.5
    background=BLACK
    x=x
    y=y
    z=z
    sizeX=vx*vs
    sizeY=vy*vs
    sizeZ=vz*vs
    lineColor=192,192,0
    fillColor=192,192,0
    x=x
    y=y
    z=z
    sizeX=size
    sizeY=size
    sizeZ=size
    lineColor=64,255,0
    fillColor=64,255,0
    points1=nc
    min1=0
    max1=pi2
    variable1="c"
    points2=nc
    min2=0
    max2=pi2
    variable2="p"
    functionx="(R+r*Math.cos(p))*Math.cos(c)"
    functiony="(R+r*Math.cos(p))*Math.sin(c)"
    functionz="r*Math.sin(p)"
    javaSyntax=true
    lineColor=192,128,0,128
    fillColor=192,128,0,32
    inputX=x
    inputY=y
    inputZ=z
    maximumPoints=npt
    connected=_isPlaying()
    lineColor=128,0,128
    lineWidth=stroke*1
    autoscaleX=true
    autoscaleY=true
    =