This is the web version of EJS interface
EJS version 4.3.3.1
  1. Title=Satellite motion
  2. Author=Fu-Kwun Hwang, modified by Ahmedelshfie
  3. Abstract=http://www.phy.ntnu.edu.tw/ntnujava/ hwang@phy.ntnu.edu.tw http://egtecno.com ahmed@egtecno.com
  4. CaptureTools=true
  5. DataTools=true
  6. LanguageTools=true
  7. EmersionSupport=true
  8. AppletColSupport=false
  9. UseInterpreter=true
  10. DetectedFiles=_data/moon1.png;_data/pause.gif;_data/play.gif;_data/reset.gif;_data/sat1.png;_data/stars2.jpg;
  11. AuxiliaryFiles=_data/sat.gif;_data/pause.gif;_data/play.gif;_data/reset.gif;_data/init.gif;_data/moon1.png;_data/stars2.jpg;_data/sat1.png;
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    x=0; y=R*2;

    ODE

    Indep. Var. Increment
    d x /dt=vx
    d y /dt=vy
    d vx /dt=ax=getA(x,y)
    d vy /dt=ay=getA(y,x)
    SolverRungeKutta AbsoluteTolerance=0.0001

    Cons Page

    cta=-Math.atan2(x,y); r=Math.sqrt(x*x+y*y); if(r>xmax*scale)scale=r*1.2/xmax;
    public void playpause () { if(label==l_play){ label=l_pause; _play(); }else{ label=l_play; _pause(); } }
    double r,r2,r3,cst; public double getA (double x, double y) { r2=x*x+y*y; r3=r2*Math.sqrt(r2); return -GM*x/r3; }
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    title=Frame
    layout=border
    visible=true
    location="157,116"
    size="550,425"
    position=south
    layout=FLOW:left,0,0
    border=2,2,2,2
    borderType=RAISED_BEVEL
    background=DARKGRAY
    image="_data/reset.gif"
    enabled=_isPaused
    action=_reset()
    size="80,35"
    variable=_isPaused
    size="80,35"
    imageOn="_data/play.gif"
    actionOn=_play()
    imageOff="_data/pause.gif"
    actionOff=_pause()
    variable=showv
    text=show Velocity
    foreground=128,255,0
    variable=showa
    text=show Force
    foreground=255,128,0
    variable=x
    minimum=0.0
    maximum=1.0
    format="x = 0.0"
    orientation=HORIZONTAL
    background=WHITE
    foreground=192,192,0
    position=center
    layout=grid:1,0,0,0
    background=black
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin*scale
    maximumX=xmax*scale
    minimumY=ymin*scale
    maximumY=ymax*scale
    square=true
    sizeX=5
    sizeY=5
    imageFile="_data/stars2.jpg"
    x=x
    y=y
    maxpoints=npt
    norepeat=true
    connected=true
    color=WHITE
    x=x
    y=y
    sizex=w
    sizey=w2
    enabled=false
    image="_data/sat1.png"
    x=x
    y=y
    sizex=vx
    sizey=vy
    visible=showv
    enabled=true
    color=192,255,0
    secondaryColor=192,255,0
    x=x
    y=y
    sizex=ax
    sizey=ay
    visible=showa
    enabled=false
    color=255,128,0
    secondaryColor=255,128,0
    x=0
    y=0
    sizeX=D
    sizeY=D
    visible=true
    imageFile="_data/moon1.png"
    elementposition=CENTERED