This is the web version of EJS interface
EJS version 4.3.2
  1. Author=Fu-Kwun Hwang - Dept. of Physics,National Taiwan normal Univ.
  2. Abstract=http://www.phy.ntnu.edu.tw/ntnujava/ hwang@phy.ntnu.edu.tw
  3. CaptureTools=true
  4. DataTools=false
  5. LanguageTools=true
  6. EmersionSupport=false
  7. UseInterpreter=true
  8. DetectedFiles=./_data/diode20.gif;
    NameValueTypeDimension
    NameValueTypeDimension
    NameValueTypeDimension

    Init Page

    t=0;

    Evol Page

    Indep. Var. Increment
    d x /dt=V/R*sinwt
    SolverEuler AbsoluteTolerance=0.00001

    FixRel Page

    mx=x%d; if(sinwt<0)xa=x0+d-mx; else xa=x0+mx; for(int i=0;i<n1;i++){ if(sinwt>0)xd[i]=i*d+mx; else xd[i]=(i+1)*d-mx; } for(int i=0;i<n2;i++){ if(sinwt>0)xd2[i]=(i+0.5)*d+mx; else xd2[i]=(i+1.5)*d-mx; } for(int i=0;i<n3;i++){ if(sinwt>0)xd3[i]=i*d+mx; else xd3[i]=(i+1)*d-mx; } for(int i=0;i<n4;i++){ if(sinwt>0)xd4[i]=(i+0.5)*d+mx; else xd4[i]=(i+1.5)*d-mx; } for(int i=0;i<n5;i++){ xd5[i]=(i+0.2)*d+mx; } for(int i=0;i<n6;i++){ xd6[i]=i*d+mx; }
    EJSVIEW: Click link to view it's content
    Control variables:(testing)
    double,double
    title="Frame"
    layout=border
    visible=true
    size="610,381"
    position=center
    autoscaleX=false
    autoscaleY=false
    minimumX=xmin
    maximumX=xmax
    minimumY=ymin
    maximumY=ymax
    square=true
    sizeX=h*ratio
    sizeY=h
    imageFile="./_data/diode20.gif"
    x=0.347
    y=0.096
    sizeY=0
    lineWidth=stroke
    x=0.347
    y=-0.382
    sizeY=0
    lineWidth=stroke
    x=x1
    y=yu-mx
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x1
    y=yd-mx
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x1
    y=y1
    transformation=-pi/4
    visible=sinwt>0
    numberOfElements=n1
    x=xd
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x2
    y=y2
    transformation=pi/4
    visible=sinwt<0
    numberOfElements=n1
    x=xd
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x2
    y=y2
    transformation=-pi/4
    visible=sinwt>0
    numberOfElements=n1
    x=xd
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x1
    y=y3
    transformation=pi/4
    visible=sinwt<0
    numberOfElements=n1
    x=xd
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x4
    y=y4
    transformation=-pi
    numberOfElements=n4
    x=xd4
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x3
    y=y2
    numberOfElements=n2
    x=xd2
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x4
    y=y2
    transformation=-pi/2
    numberOfElements=n3
    x=xd3
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x0
    y=y4
    transformation=pi/2
    numberOfElements=n3
    x=xd3
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=xa
    y=y2
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x1
    y=y5
    transformation=pi
    numberOfElements=n5
    x=xd5
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x5
    y=y0
    numberOfElements=n5
    x=xd5
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    x=x5
    y=y5
    transformation=pi/2
    numberOfElements=n6
    x=xd6
    y=0
    sizeX=size
    sizeY=size
    lineColor=clr
    fillColor=clr0
    position=south
    layout=border
    visible=false
    position=east
    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()
    position=center
    layout=HBOX
    variable=V
    minimum=1
    maximum=10
    format="V=0.0V"
    dragaction=vx=V/R;
    variable=R
    minimum=20.0
    maximum=100.0
    format="R=0.0 kΩ"