Warning, /education/step/doc/examples.docbook is written in an unsupported language. File is not indexed.

0001 <chapter id="examples">
0002 <title>&step; examples</title>
0003 
0004 <para>&step; package contains several instructive examples to help you understand the principles of the application work:
0005 </para>
0006 
0007 <variablelist>
0008   <varlistentry>
0009     <term><menuchoice>
0010     <guimenu>File</guimenu>
0011     <guisubmenu>Examples</guisubmenu></menuchoice></term>
0012     <listitem><para><action>Opens a submenu</action> with different action items.</para>
0013     <variablelist>
0014       <varlistentry>
0015         <term><guimenuitem>Open Example...</guimenuitem></term>
0016         <listitem><para><action>Opens an example</action> from the default set</para></listitem>
0017       </varlistentry>
0018       <varlistentry>
0019         <term><guimenuitem>Open Downloaded Example...</guimenuitem></term>
0020         <listitem><para><action>Opens the downloaded examples.</action></para></listitem>
0021       </varlistentry>
0022       <varlistentry>
0023         <term><guimenuitem>Download New Experiments...</guimenuitem></term>
0024         <listitem><para><action>Download examples</action> shared by other users.</para></listitem>
0025       </varlistentry>
0026       <varlistentry>
0027         <term><guimenuitem>Share Current Experiment...</guimenuitem></term>
0028         <listitem><para><action>You can share your own examples.</action></para></listitem>
0029       </varlistentry>
0030     </variablelist>
0031     </listitem>
0032   </varlistentry>
0033 </variablelist>
0034 
0035 <para>You can find the descriptions of the default example files below.
0036 </para>
0037 
0038 <variablelist>
0039   <varlistentry id="brownian">
0040     <term><filename>brownian.step</filename></term>
0041     <listitem><para>Plots trajectory of the rigid disk interacting with 40 particles that randomly drifting in a box. This example simulates <ulink url="https://en.wikipedia.org/wiki/Brownian_motion">Brownian motion</ulink> of ideal gas particles.</para></listitem>
0042   </varlistentry>
0043 
0044   <varlistentry id="pendulum">
0045     <term><filename>doublependulum.step</filename></term>
0046     <listitem><para>This example simulates <ulink url="https://en.wikipedia.org/wiki/Double_pendulum">double pendulum motion</ulink> using 2 massive particles and two sticks.</para></listitem>
0047   </varlistentry>
0048 
0049   <varlistentry id="eightpendulum">
0050     <term><filename>eightpendulum.step</filename></term>
0051     <listitem><para>This example is a simple demonstration of the famous <ulink url="https://en.wikipedia.org/wiki/Newton%27s_cradle">Newton's cradle</ulink>. It is done in &step; using sticks, 8 discs and a box. The six balls in the middle are not moving because they just transfer momentum and energy, not a motion.</para></listitem>
0052   </varlistentry>
0053 
0054   <varlistentry id="first">
0055     <term><filename>first.step</filename>: First example</term>
0056     <listitem><para>This example has two parts. The first part contains two particles connected by a spring and the second part contains two charged particles.
0057     </para>
0058     <variablelist>
0059       <varlistentry id="first-two-particles">
0060         <term>Two particles connected by a spring</term>
0061         <listitem><para>In this example two particles are added to the scene and spring is connected between them. The properties of both the particles such as velocity, momentum, position &etc; has been set in the properties browser. The properties of the spring such as stiffness, restLength, damping &etc; also has been set in the properties browser.
0062         </para>
0063 
0064         <para><emphasis>Explanation of the simulation:</emphasis>
0065         </para>
0066 
0067         <para>This is good example of a simple harmonic motion. Here the acceleration of the one particle is set in direction of positive x-axis and the acceleration of the other particle is set along negative x-axis. As a result both the particles pulls the spring in opposite directions, where as spring tries to bring the two particles back to their original positions. Thus the system executes simple harmonic motion. The simulation of the particles and spring under these conditions can be seen on the scene.
0068         </para></listitem>
0069       </varlistentry>
0070 
0071       <varlistentry id="first-two-charged">
0072         <term>Two charged particles</term>
0073         <listitem><para>Velocity of the each charged particle is set in some direction so, the charged particles moves in respective direction of their velocity but each particle has been given a equal and opposite charge so the particles try to attract each other. As a result the simulation of the charged particles under these conditions can be seen on the scene.</para></listitem>
0074       </varlistentry>
0075     </variablelist>
0076     </listitem>
0077   </varlistentry>
0078 
0079   <varlistentry id="fourpendula">
0080     <term><filename>fourpendula.step</filename></term>
0081     <listitem><para>This example is a correct demonstration of the <ulink url="https://en.wikipedia.org/wiki/Newton%27s_cradle">Newton's cradle</ulink>. As the system is imperfect two disks in the middle get visual movement with time.</para></listitem>
0082   </varlistentry>
0083 
0084   <varlistentry id="gas">
0085     <term><filename>gas.step</filename></term>
0086     <listitem><para>This example simulates ideal gas pressure caused by <ulink url="https://en.wikipedia.org/wiki/Brownian_motion">Brownian motion</ulink>.</para></listitem>
0087   </varlistentry>
0088 
0089   <varlistentry id="graph">
0090     <term><filename>graph.step</filename></term>
0091     <listitem><para>Plots velocity vs. position graph for particle1 in the system of two particles connected with a spring.</para></listitem>
0092   </varlistentry>
0093 
0094   <varlistentry id="liquid">
0095     <term><filename>liquid.step</filename></term>
0096     <listitem><para>This example simulates monoatomic liquid.</para></listitem>
0097   </varlistentry>
0098 
0099   <varlistentry id="lissajous">
0100     <term><filename>lissajous.step</filename></term>
0101     <listitem><para>This example simulates <ulink url="https://en.wikipedia.org/wiki/Lissajous_curve">Lissajous curve</ulink> using two-particle model. The parameters on the model can be changed using the controller at the center of the world.</para></listitem>
0102   </varlistentry>
0103 
0104   <varlistentry id="motor1">
0105     <term><filename>motor1.step</filename></term>
0106     <listitem><para>Simulates triangular rigid body under the loading of the three linear motors.</para></listitem>
0107   </varlistentry>
0108 
0109   <varlistentry id="motor-example">
0110     <term><filename>motor.step</filename></term>
0111     <listitem><para>Simulates interaction of the linear motor with a rigid rectangular body on a spring.</para></listitem>
0112   </varlistentry>
0113 
0114   <varlistentry id="note-example">
0115     <term><filename>note.step</filename></term>
0116     <listitem><para>Example with &latex; formula (<ulink url="https://en.wikipedia.org/wiki/Divergence_theorem">divergence theorem</ulink>) and embedded image.</para></listitem>
0117   </varlistentry>
0118 
0119   <varlistentry id="resonance">
0120     <term><filename>resonance.step</filename></term>
0121     <listitem><para>This example simulates resonance in the system with angular motor.</para></listitem>
0122   </varlistentry>
0123 
0124   <varlistentry id="softbody">
0125     <term><filename>softbody.step</filename></term>
0126     <listitem><para>This example simulates interaction of two rigid bodies with a soft body between them.</para></listitem>
0127   </varlistentry>
0128 
0129   <varlistentry id="solar">
0130     <term><filename>solar.step</filename></term>
0131     <listitem><para>This example simulates the motion of Solar system major bodies (Sun and the planets).</para></listitem>
0132   </varlistentry>
0133 
0134   <varlistentry id="springs">
0135     <term><filename>springs.step</filename></term>
0136     <listitem><para>This example simulates the motion of the planar system of five particles connected with four springs.</para></listitem>
0137   </varlistentry>
0138 
0139   <varlistentry id="wave">
0140     <term><filename>wave.step</filename></term>
0141     <listitem><para>The graph on the scene shows oscillations of the green particle. When you start simulation the wave starts to travel from the red particle. The blue particle will reflect the wave and it will travel in reverse direction until the red particle reflects in again. After some time the wave will vanish because springs have damping.</para></listitem>
0142   </varlistentry>
0143 </variablelist>
0144 
0145 </chapter>