This is the web version of EJS interface
EJS version 4.2
  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
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    dy=(xmax-xmin)*cst2/n; for(int i=0;i<n;i++){ x=xmin*cst2+i*dx; for(int j=0;j<n;j++){ y=ymin*cst2+j*dy; for(int k=0;k<nz;k++){ r=Math.sqrt(x*x+y*y); bx[i][j][k]=-y/r; by[i][j][k]=x/r; bz[i][j][k]=0; } } }

    FixRel Page

    dy=(xmax-xmin)*cst2/n; cs=Math.cos(c); sc=Math.sin(c); for(int i=0;i<np;i++){ xf[i]=xc; yf[i]=(xmin+i*dy)*cs; zf[i]=(xmin+i*dy)*sc; r=Math.sqrt(xc*xc+yf[i]*yf[i]); Bx[i]=-yf[i]/r*fcst; By[i]=xf[i]/r*fcst; fx[i]=-By[i]*sc; fy[i]=Bx[i]*sc; fz[i]=-Bx[i]*cs; }
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double
    title="Frame"
    layout=border
    visible=true
    location="288,15"
    size="518,509"
    position=center
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    minimumZ=zmin
    maximumZ=zmax
    cameraAzimuth=1.7100000000000006
    cameraAltitude=0.3250000000000002
    cameraFocusX=0.0
    cameraFocusY=0.0
    cameraFocusZ=0.0
    cameraRotation=0.0
    cameraDistanceToScreen=500.0
    x=0
    y=0
    z=zmin*cst
    sizeX=0
    sizeY=0
    sizeZ=(zmax-zmin)*cst
    lineWidth=stroke
    minimumX=xmin*cst2
    maximumX=xmax*cst2
    minimumY=ymin*cst2
    maximumY=ymax*cst2
    minimumZ=zmin*cst2
    maximumZ=zmax*cst2
    xcomponent=bx
    ycomponent=by
    zcomponent=bz
    length=d
    mincolor=64,64,64,128
    maxcolor=64,64,64,128
    points=npt
    min=ymin*cst
    max=ymax*cst
    variable="t"
    functionx="xc"
    functiony="cs*t"
    functionz="sc*t"
    lineWidth=stroke
    numberOfElements=np
    x=xf
    y=yf
    z=zf
    sizeX=fx
    sizeY=fy
    sizeZ=fz
    lineColor=BLUE
    fillColor=BLUE
    numberOfElements=np
    x=xf
    y=yf
    z=zf
    sizeX=Bx
    sizeY=By
    sizeZ=Bz
    lineColor=BLACK
    fillColor=BLACK
    x=xc
    y=cs*xmin
    z=sc*xmax
    sizeX=0
    sizeY=cs*(xmax-xmin)
    sizeZ=sc*(xmax-xmin)
    lineColor=RED
    fillColor=RED
    lineWidth=stroke
    position=south
    layout=HBOX
    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()
    variable=xc
    minimum=xmax
    maximum=xmin
    position=east
    variable=c
    minimum=0.0
    maximum=pi
    orientation=VERTICAL