<simulation>
  
<header>
    
<title>Pendule</title>
    
<title lang="english">Pendulum</title>
    
<title lang="spanish">Péndulo</title>
    
<author>Stéphane Mottelet, Guillaume Barbaud</author>
    
<date>Fri Sep 23 16:20:11 CEST 2005</date>
    
<keywords lang="french">simulation,scilab,xml</keywords>
    
<keywords lang="spanish">Simulación, Scilab, XML</keywords>
  
</header>
  
<notes>
    
<p>Il s'agit d'une simulation d'un pendule non linéaire. On compare la trajectoire obtenue après 
    intégration des équations à l'aide de Scilab, avec la solution linéarisée. Sur la fenêtre montrant
    les trajectoires, un curseur en forme de croix permet d'ajuster l'angle initial du pendule.
    
</p>
  
</notes>
  
<notes lang="english">
    
<p>This applet show a simulation of a non-linear pendulum. We compare the trajectory which is obtained by 
    integrating the equations with Scilab, with the linearized solution. On the window showing
    both trajectories, a cross-shaped cursor allows to adjust the initial angle.
    
</p>
  
</notes>
  
<notes lang="spanish">
    
<p>Aquí se enseña una simulación de un péndulo no lineal. Se compara la trayectoria obtenida después de la integración de las ecuaciones con la ayuda de Scilab, con la solución linearizada. En la ventana donde están las trayectorias, un cursor en forma de cruz permite ajustar el ángulo inicial del péndulo </p>
  
</notes>
  
<parameters><section>
      
<title>Paramètres du pendule</title>
      
<title lang="english">Parameters of the pendulum</title>
      
<title lang="spanish">Parámetros del péndulo</title>
      
<scalar label="L" unit="m"><name>Longueur du pendule</name><name lang="english">Length of the pendulum</name><name lang="spanish">Longitud del péndulo</name><value>1</value></scalar>
      
<scalar label="g0" unit="ms^-2"><name>Accélération de la pesanteur</name><name lang="english">Gravity</name><name lang="spanish">Aceleración de la gravedad</name><value>9.81</value></scalar>
      
<point label="point0" state="hidden"><x1 label="zero">
          
<value>0</value>
        
</x1><x2 label="theta_0">
          
<value>2</value>
        
</x2><constraints>
          
<curve ref="segment" />
        
</constraints></point>
    
</section><section>
      
<title>Paramètres de résolution</title>
      
<title lang="english">Resolution parameters</title>
      
<title lang="spanish">Parámetros de resolución</title>
      
<scalar label="tf" unit="s" min="1" increment="1" max="10"><name lang="english">Final time</name><name>Temps final</name><name lang="spanish">Tiempo final</name><value>2</value></scalar>
    
</section></parameters>
  
<compute>
    
<defdomain1d label="t" unit="s">
      
<name>Temps</name>
      
<name lang="english">time</name>
      
<name lang="spanish">Tiempo</name>
      
<interval steps="200">
        
<initialvalue>0</initialvalue>
        
<finalvalue>tf</finalvalue>
      
</interval>
    
</defdomain1d>
    
<ode label="pendule">
      
<refdomain1d ref="t" />
      
<states>
        
<state label="theta" unit="rad">
          
<name>Solution Réelle</name>
          
<name lang="english">Real Solution</name>
          
<name lang="spanish">Solución real</name>
          
<derivative>theta_point</derivative>
          
<initialcondition>theta_0</initialcondition>
        
</state>
        
<state label="theta_point" unit="rad">
          
<name>Dérivée de l'angle</name>
          
<name lang="english">Derivative of angle</name>
          
<name lang="spanish">Derivada del ánguloo</name>
          
<derivative>-g0/L*sin(theta)</derivative>
          
<initialcondition>0</initialcondition>
        
</state>
      
</states>
      
<outputs>
        
<output label="thetalin">
          
<name>Solution linéarisée</name>
          
<name lang="english">Linearized solution</name>
          
<name lang="spanish">Solución linearizada</name>
          
<value>theta_0*cos(sqrt(g0/L)*t)</value>
        
</output>
      
</outputs>
    
</ode>
  
</compute>
  
<graphs>
    
<polyline label="segment">
      
<vertex x1="0" x2="-3.14" />
      
<vertex x1="0" x2="3.14" />
    
</polyline>
  
</graphs>
  
<display>
    
<window>
      
<title>Comparaison des deux solutions</title>
      
<title lang="english">Comparison of both solutions</title>
      
<title lang="spanish">Comparación de las dos soluciones</title>
      
<axis2d xmax="tf" xmin="-0.2" ymax="3.5" ymin="-3.5" position="origin">
        
<drawcurve2d ref="theta" thickness="2" />
        
<drawcurve2d color="red" ref="thetalin" thickness="2" />
        
<drawpoints ref="point0" />
      
</axis2d>
    
</window>
  
</display>
</simulation>