<Osejs version="3.2">
<Osejs.Description>
<Osejs.Description.Page>
<Type>HTML_EDITOR</Type>
<Name>Intro Page</Name>
<Active>true</Active>
<Visible>true</Visible>
<Content>
<![CDATA[
<html>
  <head>
    
  </head>
  <body>
    In solid state physics, a popular example of the interaction between noble 
    gas atoms is the The Lennard Jones Potential . This interaction is clearly 
    presented in &quot;Introduction to Computer Simulation Methods: Applications to 
    Physical Systems&quot; by H. Gould and Jan Tobochnick 2nd edition as: 
    V(r)=4*E*[(s/r)<sup>12</sup> - (s/r)<sup>6</sup> ], with the force 
    associated with this potential written as F(r)=24*E*[2*(s/r)<sup>12</sup> 
    -(s/r)<sup>6</sup>] <u>r</u>, where E and s are the energy and distance 
    parameter associated with this model.In the case of Argon, s=3.4x10<sup>-10</sup>
 meters, E=1.65x10<sup>-12</sup> Joules, m=6.69x10<sup>-26</sup> kg. However, 
    in this calculation, we use units of e_b=1x10<sup>-19</sup> Joules, 
    distance units of a_b=1x10<sup>-10</sup> meters, mass units of m_b=1e-26 
    kg; so that, the time units are a_b*(m_b/e_b)<sup>1/2</sup> . The 
    simulation is done in one dimension. Finally, the simulation shows one 
    atom fixed at the origin, another atoms sitting at an initial position. As 
    the simulations is started, the molecules begin to interact as indecated 
    by the motion of the right particle. The graph shown indicates the 
    position of the moving particle as a function of time. Notice that the 
    particle oscillates about an equilibrium point. This equilibrium point is 
    actually the average distance between the particles known as the bond 
    length. The simulation is capable of displaying the value of the 
    particle's velocity as a function of time and the particle motion can be 
    traced as well, all by checking the appropriate interactive bottons.
  </body>
</html>

]]>

</Content>
</Osejs.Description.Page>
</Osejs.Description>
<Osejs.Model>
<Osejs.Model.FramesPerSecond>25</Osejs.Model.FramesPerSecond>
<Osejs.Model.Autostart>false</Osejs.Model.Autostart>
<Osejs.Model.Variables>
<Osejs.Model.Variables.Page>
<Type>VARIABLE_EDITOR</Type>
<Name>Planet</Name>
<Active>true</Active>
<Visible>true</Visible>
<Content>
<Variable>
<Name>time</Name>
<Value><![CDATA[0]]></Value>
<Type>double</Type>
<Dimension></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name>space</Name>
<Value><![CDATA[10]]></Value>
<Type>double</Type>
<Dimension></Dimension>
<Comment><![CDATA[in astronomical units!]]></Comment>
</Variable>
<Variable>
<Name>E</Name>
<Value><![CDATA[1.65e-2]]></Value>
<Type>double</Type>
<Dimension></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name>x</Name>
<Value><![CDATA[1.0]]></Value>
<Type>double</Type>
<Dimension></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name>vx</Name>
<Value><![CDATA[0.0]]></Value>
<Type>double</Type>
<Dimension></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name>s</Name>
<Value><![CDATA[3.4]]></Value>
<Type>double</Type>
<Dimension></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name>m</Name>
<Value><![CDATA[6.69]]></Value>
<Type>double</Type>
<Dimension></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>
<Variable>
<Name></Name>
<Value><![CDATA[]]></Value>
<Type>double</Type>
<Dimension></Dimension>
<Comment><![CDATA[]]></Comment>
</Variable>

</Content>
</Osejs.Model.Variables.Page>
</Osejs.Model.Variables>
<Osejs.Model.Initialization>
<Osejs.Model.Initialization.Page>
<Type>CODE_EDITOR</Type>
<Name>Init</Name>
<Active>true</Active>
<Visible>true</Visible>
<Content>
<Comment><![CDATA[]]></Comment>
<Code><![CDATA[
x = 1.5*s;
vx = 0;
time = 0;

]]></Code>

</Content>
</Osejs.Model.Initialization.Page>
</Osejs.Model.Initialization>
<Osejs.Model.Evolution>
<Osejs.Model.Evolution.Page>
<Type>ODE_EDITOR</Type>
<Name>Orbit</Name>
<Active>true</Active>
<Visible>true</Visible>
<Content>
<IndependentVariable>time</IndependentVariable>
<Increment>0.1</Increment>
<Rate state="x">vx</Rate>
<Rate state="vx">24.0*E*(2.0*Math.pow(s/x,12)-Math.pow(s/x,6))/x/m</Rate>
<Rate state=""></Rate>
<Method>RungeKutta</Method>
<Tolerance></Tolerance>
<Comment><![CDATA[]]></Comment>

</Content>
</Osejs.Model.Evolution.Page>
</Osejs.Model.Evolution>
<Osejs.Model.Constraints>
</Osejs.Model.Constraints>
<Osejs.Model.Library>
</Osejs.Model.Library>
</Osejs.Model>
<Osejs.View>
<Osejs.View.Creation>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Frame</Type>
<Property name="name">mainFrame</Property>
<Property name="_ejs_mainWindow">true</Property>
<Property name="title">mainFrame</Property>
<Property name="layout">border</Property>
<Property name="visible">true</Property>
<Property name="size">553,275</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">panel</Property>
<Property name="parent">mainFrame</Property>
<Property name="position">west</Property>
<Property name="layout">border</Property>
<Property name="size">90,0</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">panelButtons</Property>
<Property name="parent">panel</Property>
<Property name="position">north</Property>
<Property name="layout">grid:0,1,0,0</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">Play</Property>
<Property name="parent">panelButtons</Property>
<Property name="text">Play</Property>
<Property name="action">_play()</Property>
<Property name="enabled">_isPaused</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">Pause</Property>
<Property name="parent">panelButtons</Property>
<Property name="text">Pause</Property>
<Property name="action">_pause()</Property>
<Property name="enabled">_isPlaying</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Button</Type>
<Property name="name">Initialize</Property>
<Property name="parent">panelButtons</Property>
<Property name="text">Initialize</Property>
<Property name="action">_initialize()</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.CheckBox</Type>
<Property name="name">Trace</Property>
<Property name="parent">panelButtons</Property>
<Property name="text">Trace</Property>
<Property name="variable">trace</Property>
<Property name="selected">false</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.CheckBox</Type>
<Property name="name">Velocity</Property>
<Property name="parent">panelButtons</Property>
<Property name="text">Velocity</Property>
<Property name="variable">velocity</Property>
<Property name="selected">false</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.CheckBox</Type>
<Property name="name">ShowPanel</Property>
<Property name="parent">panelButtons</Property>
<Property name="text">Control</Property>
<Property name="variable">showPanel</Property>
<Property name="selected">false</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.Panel</Type>
<Property name="name">PanelControl</Property>
<Property name="parent">panel</Property>
<Property name="position">south</Property>
<Property name="layout">grid:0,1,0,0</Property>
<Property name="visible">showPanel</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Field</Type>
<Property name="name">Time</Property>
<Property name="parent">PanelControl</Property>
<Property name="variable">time</Property>
<Property name="format">time = 0.###</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Field</Type>
<Property name="name">Vx</Property>
<Property name="parent">PanelControl</Property>
<Property name="variable">vx</Property>
<Property name="format">Vx = 0.###;Vx = -0.###</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.DrawingPanel</Type>
<Property name="name">drawingPanel</Property>
<Property name="parent">mainFrame</Property>
<Property name="position">center</Property>
<Property name="autoscaleX">false</Property>
<Property name="autoscaleY">false</Property>
<Property name="minimumX">-space/2.0</Property>
<Property name="maximumX">space</Property>
<Property name="minimumY">-space</Property>
<Property name="maximumY">space</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Trace</Type>
<Property name="name">Trace</Property>
<Property name="parent">drawingPanel</Property>
<Property name="maxpoints">1500</Property>
<Property name="x">x</Property>
<Property name="y">0.0</Property>
<Property name="connected">true</Property>
<Property name="linecolor">darkGray</Property>
<Property name="markershape">NO_MARKER</Property>
<Property name="visible">trace</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Arrow</Type>
<Property name="name">Velocity</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x">x</Property>
<Property name="sizex">vx</Property>
<Property name="visible">velocity</Property>
<Property name="scalex">0.1</Property>
<Property name="scaley">0.1</Property>
<Property name="color">darkGray</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Particle</Type>
<Property name="name">Particle</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x">0.0</Property>
<Property name="y">0.0</Property>
<Property name="sizex">1.0</Property>
<Property name="sizey">1.0</Property>
<Property name="enabled">false</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Particle</Type>
<Property name="name">Particle2</Property>
<Property name="parent">drawingPanel</Property>
<Property name="x">x</Property>
<Property name="y">0</Property>
<Property name="sizex">1.0</Property>
<Property name="sizey">1.0</Property>
<Property name="color">green</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Slider</Type>
<Property name="name">Space</Property>
<Property name="parent">mainFrame</Property>
<Property name="position">south</Property>
<Property name="variable">space</Property>
<Property name="minimum">10</Property>
<Property name="maximum">20</Property>
<Property name="format">Space = 0.##</Property>
<Property name="ticks">10</Property>
<Property name="ticksFormat">0.#</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Expanded>true</Expanded>
<Type>Elements.PlottingPanel</Type>
<Property name="name">PlottingPanel</Property>
<Property name="parent">mainFrame</Property>
<Property name="position">east</Property>
<Property name="title">PlottingPanel</Property>
<Property name="autoscaleX">true</Property>
<Property name="autoscaleY">true</Property>
</Osejs.View.Creation.Element>
<Osejs.View.Creation.Element>
<Type>Elements.Trace</Type>
<Property name="name">Trace2</Property>
<Property name="parent">PlottingPanel</Property>
<Property name="x">time</Property>
<Property name="y">x</Property>
<Property name="connected">true</Property>
<Property name="markershape">NO_MARKER</Property>
</Osejs.View.Creation.Element>
</Osejs.View.Creation>
</Osejs.View>
</Osejs>
