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
  8. AuxiliaryFiles=./rocket_pkg/rocket_zh.properties;
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    init=true; t=0; m=M; vx=0; x=0; mT=mpratio*M/prate;

    Evol Page

    Indep. Var. Increment
    d m /dt=-prate
    d x /dt=vx=u*Math.log(M/m)
    SolverRungeKutta AbsoluteTolerance=0.001

    FixRel Page

    if(init && t>0)init=false; if(m<M/mratio)_pause();

    dvalue

    double dv; public double dvalue (double v) { if(v>0)dv=0.5; else if(v<0)dv=-0.5; else dv=0; return (int)(v*100+dv)/100.; }
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double,double,double,double,double
    title="Frame"
    layout=border
    visible=true
    location="129,9"
    size="707,499"
    background=64,64,0
    position=center
    layout=HBOX
    autoscaleX=true
    autoscaleY=true
    title="x(t)"
    interiorBackground=128,192,0
    foreground=192,128,0
    x=t
    y=x
    memory=ntrace
    memorycolor=LIGHTGRAY
    norepeat=true
    connected=true
    color=128,0,255
    stroke=stroke*1
    autoscaleX=true
    autoscaleY=true
    title="v(t)"
    interiorBackground=128,192,0
    foreground=192,128,0
    x=t
    y=vx
    memory=ntrace
    memorycolor=LIGHTGRAY
    norepeat=true
    connected=true
    color=128,0,255
    stroke=stroke*1
    position=south
    layout=border
    position=east
    layout=GRID:0,1,0,0
    background=DARKGRAY
    foreground=200,220,208
    text="Reset"
    image=/org/opensourcephysics/resources/controls/images/reset.gif
    action=_reset()
    text="init"
    enabled=_isPaused()
    action=_initialize()
    variable=_isPaused
    textOn="Play"
    imageOn=/org/opensourcephysics/resources/controls/images/play.gif
    actionOn=_play()
    textOff="Pause"
    imageOff=/org/opensourcephysics/resources/controls/images/pause.gif
    actionOff=_pause()
    position=center
    layout=GRID:2,0,0,0
    borderType=LOWERED_ETCHED
    background=DARKGRAY
    foreground=YELLOW
    variable=mratio
    minimum=2.0
    maximum=100.0
    format="ratio=0.0"
    ticks=50
    closest=true
    enabled=init
    dragaction=mpratio=1-1/mratio; mT=mpratio*M/prate;
    variable=mpratio
    minimum=0.0
    maximum=1.0
    format="pratio=0.000"
    enabled=init
    dragaction=mratio=1/(1-mpratio); mT=mpratio*M/prate;
    variable=prate
    minimum=0.001
    maximum=0.1
    format="dmdt=0.000"
    enabled=init
    dragaction=mT=mpratio*M/prate;
    variable=mT
    minimum=10.0
    maximum=1000.0
    format="T=0.0s"
    enabled=init
    dragaction=prate=mpratio*M/mT;
    variable=u
    minimum=1.0
    maximum=100.0
    format="u=0.0"
    enabled=init
    variable=M
    minimum=1.0
    maximum=10.0
    format="m=0.0"
    enabled=init
    dragaction=m=M; mT=mpratio*M/prate;
    position=south
    layout=HBOX
    foreground=192,128,0
    variable=x
    minimum=0.0
    format="x = 0.0"
    orientation=HORIZONTAL
    variable=t
    minimum=0.0
    format="time = 0.0"
    orientation=HORIZONTAL
    variable=vx
    minimum=0.0
    format="vx = 0.0"
    orientation=HORIZONTAL