This is the web version of EJS interface
EJS version 4.3.7
  1. Author=Fu-Kwun Hwang - Professor
  2. Abstract=http://www.phy.ntnu.edu.tw/ntujava/
  3. CaptureTools=false
  4. DataTools=false
  5. LanguageTools=false
  6. AppletColSupport=false
  7. UseMacMenuBar=false
  8. UseInterpreter=true
    NameValueTypeDimension
    NameValueTypeDimension

    Evol Page

    Indep. Var. Increment
    d x /dt=vx
    d y /dt=vy
    d vx /dt=q*qs*vy*calB(x)/m
    d vy /dt=-q*qs*vx*calB(x)/m
    SolverRungeKutta AbsoluteTolerance=0.00001

    Name:ƥ,active=true,:Method:BISECTION,(~td1.0e-5),stopatEvent=true
    return y-ymin+size/2;


    ʧ@
    vy=-vy;

    Name:ƥ 2,active=true,:Method:BISECTION,(~td1.0e-5),stopatEvent=true
    return ymax-size/2-y;


    ʧ@
    vy=-vy;

    關係式

    v=Math.sqrt(vx*vx+vy*vy); if(x>xmax){ x=xmin+x-xmax; connect=false; tc=t; } else if(x<xmin){ x=xmax-(xmin-x); connect=false; tc=t; } if(!connect && tc<t-2*dt)connect=true; ts="time="+dvalue(t)+"us";

    calB

    public double calB (double x) { return B0*Math.exp(-x*x/(2*sigma*sigma)); } public double dvalue(double v){ return (int)(100*v+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
    size="531,537"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    x=x
    y=y
    maxpoints=npt
    active=_isPlaying()
    norepeat=true
    connected=connect
    x=x
    y=y
    sizeX=size
    sizeY=size
    x=x
    y=y
    sizeX=vx
    sizeY=vy
    enabledPosition=ENABLED_ANY
    enabledSize=ENABLED_ANY
    lineColor=RED
    fillColor=RED
    points=500
    min=xmin
    max=xmax
    variable="x"
    functionx="x"
    functiony="B0*Math.exp(-x*x/(2*sigma*sigma))"
    javaSyntax=true
    lineColor=GRAY
    x=xmax-size*8
    y=ymax-size*2
    pixelSize=true
    text=%ts%
    font=Monospaced,PLAIN,14
    elementposition=WEST
    position=south
    layout=border
    position=east
    layout=GRID:0,1,0,0
    borderType=LOWERED_ETCHED
    variable=_isPaused
    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/reset.gif
    action=_reset()
    position=center
    layout=GRID:0,1,0,0
    layout=HBOX
    variable=B0
    minimum=0.0
    maximum=5.0
    format="B=0.00 T"
    variable=sigma
    minimum=size/10
    maximum=xmax*2
    format="sigma=0.00"
    variable=dt
    minimum=0.001
    maximum=0.050
    format="time step=0.000 us"
    layout=HBOX
    variable=m
    minimum=1.0
    maximum=10.0
    format="m=0.0 *ten^26kg"
    ticks=10
    closest=true
    layout=GRID:0,1,0,0
    variable=qp
    text="+"
    action=if(qp)qs=1; else qs=-1; qn=!qp;
    variable=qn
    text="-"
    action=qp=!qn; if(qp)qs=1; else qs=-1;
    variable=q
    minimum=1.0
    maximum=10.0
    format="q=0.0 *ten^-19 C"
    ticks=10
    closest=true
    variable=v
    minimum=0.0
    maximum=xmax
    format="v=0.00 km/s"
    dragaction=vc=Math.atan2(vx,vy); vx=v*Math.sin(vc); vy=v*Math.cos(vc);