<![CDATA[x vs t Simulator]]> false false false false false false false true true false ]]> ./SHM04/2015-02-16_1059s.png ./1authorlookangphoto5050.png;./01authorPacoEsquembre2011.png;./01authorFelix_J_Garcia_Clemente.png DESCRIPTION_EDITOR SHM02 true false _default_ SHM02 true 20 1 false VARIABLE_EDITOR Var Table true false VARIABLE_EDITOR layout true false VARIABLE_EDITOR simplespring true false VARIABLE_EDITOR advancedspring true false VARIABLE_EDITOR max true false VARIABLE_EDITOR functionY true false CODE_EDITOR Init Page true false 0) { pointA = x; pointB = -pointA; } else if ( x <0) { pointB = x; pointA = -pointB; } ]]> CODE_EDITOR functionY true false CODE_EDITOR axes true false CODE_EDITOR svg true false '+ ' '+ ' '+ ' '+ ' '+ ''; container.innerHTML = svggradient; document.body.appendChild(container); //"url(#mygrandientglint)" ]]> CODE_EDITOR filter true false '+ 'Produces a 3D lighting effect for rectangles.'+ ''+ ' '+ // ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ''+ ''; container.innerHTML = svgfilter; document.body.appendChild(container); ]]> CODE_EDITOR undefined true false CODE_EDITOR radial true false '+ ' '+ ' '+ ' '+ ' '+ ''; container.innerHTML = svggradient; document.body.appendChild(container); //"url(#mygrandient)" ]]> ODE_EDITOR Evol Page true false EVENT_EDITOR Event true false CROSSING_EVENT BISECTION 100 true t dt vx -k/m*(x-l) - b*vx/m + externalForce(t)/m RungeKutta 10000 0.00001 false false false false CODE_EDITOR FixRel Page true false CODE_EDITOR FixRel Page 2 true false 0){ pointB =-Math.max(pointA,Math.abs(x-l)); tpointB = t; counterB = counterB+1; tarraypointB[counterB] = t; arraypointB[counterB]=pointB; // textB[counterB] = "B"+counterB ; textB[counterB] = "B"; } // else T1[nc]=t*2.;// first half period vxstored = vx; // to store value of omega ]]> CODE_EDITOR FixRel Page 3 true false CODE_EDITOR axes true false LIBRARY_EDITOR Lib Page true false LIBRARY_EDITOR changeOrientation true false LIBRARY_EDITOR android true false -1; //&& ua.indexOf("mobile"); } ]]> LIBRARY_EDITOR fullscreen true false HTML_VIEW_EDITOR HtmlView Page true false 0 0 0 800 600 true true Elements.Panel true Elements.Panel false Elements.PlottingPanel Elements.Shape2D Elements.Shape2D Elements.Shape2D =2) x = 2; //selected[0]="user_defined"; _view.comboBox.setSelectedOptions(["user defined"]); ]]> Elements.Shape2D Elements.Shape2D Elements.Shape2D Elements.Shape2D false Elements.Group2D Elements.Arrow2D Elements.Text2D Elements.Text2D Elements.Text2D Elements.Text2D Elements.Arrow2D Elements.Text2D Elements.Spring2D Elements.Spring2D Elements.Arrow2D Elements.Text2D Elements.Arrow2D false Elements.Group2D Elements.Arrow2D Elements.Shape2D false Elements.Group2D Elements.Text2D Elements.Shape2D Elements.Shape2D false Elements.Group2D Elements.Text2D Elements.Text2D false Elements.PlottingPanel Elements.AnalyticCurve2D Elements.Shape2D Elements.Trail2D 0]]> 0]]> Elements.Shape2D false Elements.Group2D Elements.Arrow2D Elements.Text2D Elements.Text2D Elements.TextSet2D Elements.TextSet2D Elements.Text2D Elements.Text2D Elements.Arrow2D Elements.Text2D Elements.Text2D Elements.Arrow2D true Elements.Panel Elements.ComboBox 0)? opts[0]:""; // selected option if ( option=="user defined"){ } //printing begins today else if (option == "print"){ print = true; } //printing ends here else if ( option=="xo=-2"){ x=-2; vx=0; } else if ( option=="xo=-1"){ x=-1; vx=0; } else if ( option=="xo=1"){ x=1; vx=0; } else if ( option=="xo=0,vo=2"){ x=0; vx=2; } else if ( option=="xo=1,vo=1"){ x=1; vx=1; } else if ( option=="xo=2"){ x=2; vx=0; } else if ( option=="no_damping,b=0.0"){ b=0; } else if ( option=="light_damping,b=0.1"){ b=0.1; } else if ( option=="critical_damping,b=2.0"){ b=2.0; } else if ( option=="heavy_damping,b=5.0"){ b=5.0; } else if ( option=="driving_force,fdriver=0.05"){ x=0; amplitude=1.0; Hertz = 0.05; } else if ( option=="driving_force,fdriver=0.1"){ x=0; amplitude=0.5; Hertz = 0.1; } else if ( option=="driving_force,fdriver=0.159,resonance"){ x=0; amplitude=0.5; Hertz = 1.0/(2*pi); } else if ( option=="driving_force,fdriver=0.2"){ x=0; amplitude=0.5; Hertz = 0.2; } else if ( option=="driving_force,fdriver=0.3"){ x=0; amplitude=0.5; Hertz = 0.3; } else if ( option=="driving_force,fdriver=0.4"){ amplitude=0.5; Hertz = 0.4; } else if ( option=="driving_force,fdriver=0.5"){ x=0; amplitude=0.5; Hertz = 0.5; } else if ( option=="driving_force,fdriver=0.6"){ amplitude=0.5; Hertz = 0.6; } else if ( option=="driving_force,fdriver=0.7"){ x=0; amplitude=0.5; Hertz = 0.7; } else if ( option=="driving_force,fdriver=1.0"){ x=0; amplitude=0.5; Hertz = 1.0; } else if ( option=="driving_force,fdriver=2.0"){ x=0; amplitude=0.5; Hertz = 2.0; } else if ( option=="driving_force,fdriver=4.0"){ amplitude=0.5; Hertz = 4.0; } else if ( option=="driving_force,fdriver=6.0"){ amplitude=0.5; Hertz = 6.0; } else if ( option=="driving_force,fdriver=8.0"){ x=0; amplitude=0.5; Hertz = 8.0; } else if ( option=="driving_force,fdriver=10.0"){ x=0; amplitude=0.5; Hertz = 10.0; } else if ( option=="driving_force,fdriver=12.0"){ x=0; amplitude=0.5; Hertz = 12.0; } ]]> Elements.ComboBox 0)? opts[0]:""; // selected option if ( option=="world"){ world=true; Width1 = "100%"; Width2 = "0%"; //disabled=false; } //printing here else if (option == "print"){ print = true; } //printing ends today else if ( option=="x vs t"){ graph=true; Width1 = "0%"; Width2 = "100%"; //disabledworld=false; } else if ( option=="both"){ world=true; graph=true; Width1 = "50%"; Width2 = "50%"; //disabledworld=false; } else if ( option=="show model"){ showmodel=true; } else if ( option=="hide model"){ showmodel=false; } ]]> Elements.TwoStateButton Elements.Button Elements.Button true Elements.Panel Elements.Label Elements.ComboBox 0)? opts[0]:""; // selected option showmodel=true; functionY=option+""; if (option=="show me"){ functionY= +_view._format(Acalculated,"0.0")+"*sin(" +_view._format(w,"0.00")+"*t+("+_view._format(phi,"0.00")+"))"; } xmodel=_view.fField.evaluate({ t : t, x : xmodel }); _view._update(); ]]> Elements.Function