Author's home page Physics of Oscillations – Contents Pendulum with a Squarewave Modulated Length (A Virtual Lab for Undergraduate Students) A computer model of an ordinary rigid planar pendulum excited by a squarewave (piecewiseconstant) modulation of its length is presented on this page. The simulation is implemented as a Java applet. It requires some time to load, so please be patient while it is starting.
Java applets are run by web browsers (with Java plugin installed) under security restrictions to protect the user. In case you have Java 7 or Java 8 installed on your machine, trying to run Java applications generates a message:
Steps to Add URLs to the Exception Site list:
Instead of running the applet, you can open (or download) the executable jar file (Java archive) PendParSquare.jar in which the simulation is packaged. You can start it while reading the present web page, which gives the description of the simulated physical system. The model of a pendulum that is used in the simulation program is a massless rod with a massive bob on its end. The force of gravity creates a restoring torque that tends to return the pendulum into the equilibrium position. The torque is proportional to sine of the deflection angle. To provide modulation of a system parameter, we assume that the bob can be shifted up and down along the rod. Periodic modulation of the pendulum length by such mass reconfiguration can cause, under certain conditions, a growth of (initially small) natural oscillations of the pendulum. The periodic squarewave variation of a parameter can produce considerable oscillation of the pendulum provided the period and phase of modulation are chosen properly. For example, suppose that the bob is shifted up at the instant at which the pendulum passes through the equilibrium position. At this instant the angular velocity of the pendulum has its maximum value. The angular momentum of the pendulum with respect to the pivot remains constant when the bob is shifted along the rod, because no torque is needed for this displacement. Thus the resulting reduction in the moment of inertia is accompanied by an increment in the angular velocity, and the pendulum gets additional kinetic energy. The greater the angular velocity, the greater the increment in energy. This additional energy is supplied by the source that moves the bob along the rod. On the other hand, if the bob is instantly moved down along the rotating rod, the angular velocity and kinetic energy of the pendulum diminish. The decrease in energy is transmitted back to the source. In order that increments in energy occur regularly and exceed the amounts of energy returned, i.e., in order that, as a whole, the modulation of the pendulum length regularly feed the pendulum with energy, the period and phase of modulation must satisfy certain conditions. For instance, let the bob be shifted both up and down twice during one mean period of the natural oscillation. Moreover, let the bob be shifted up at the instant at which the angular velocity reaches its maximum. Then the bob will be shifted down almost at the instant of extreme deflection, when the angular velocity is nearly zero. The angular velocity increases at the moment when the bob is shifted up, and vice versa. But if the angular momentum is zero at the moment the bob is shifted down, this particular motion causes no change in the angular velocity or kinetic energy of the pendulum. Thus modulating the length of the pendulum at a frequency twice the mean natural frequency generates the greatest growth of the amplitude, provided that the phase of the modulation is chosen in the way described above. The theoretical background for understanding the phenomenon of parametric excitation can be found in the paper «Pendulum with a Squarewave Modulated Length». We recommend you to read this paper before proceeding to work with the simulation program. The paper presents a summary of the relevant theory.
The simulation program (Java applet) allows you to observe the motion of the pendulum on the screen. You can make a pause in the simulation and resume it by clicking the button "Start/Pause" on the control panel which is located on the lefthand side of the applet window. You can vary the time scale of the modulation for convenient observation by moving the slider named "Anim. delay" (down on the panel to the left side of the pendulum). The model allows you also to display the graphs of time dependence of the angle and angular velocity as well as the graphs of energy transformations and the phase diagram. The graphs are displayed in separate windows, if you by check the corresponding checkboxes on the control panel. You can resize and drag with the mouse the panels with graphs and the phase trajectory to any convenient place on the screen. (If these windows occur covered by other panels, simply double click on the corresponding checkboxes.) Instead of using the applet in your browser, you can download the Java executable archive file PendParSquare.jar on your machine, launch it and comfortably play with the computer model of the pendulum out of the browser window. In particular, you can drag and resize the panel that displays the pendulum with your mouse for convenient observation, open additional windows with different graphs and with the phase trajectory, vary parameters of the system, and much more. At first acquaintance with the program you can open the list of predefined examples (by using the checkbox under the image of the system). These examples illustrate the most typical kinds of motion of the simulated system. Choosing an example from the list, you need not enter the values of parameters required for the illustrated mode – they will be assigned automatically. The panel on the righthand side of the pendulum allows you to vary parameters of the pendulum (absence or presence of viscous friction, and quality factor Q ), the period and depth of modulation, and also to change initial conditions (initial angle of deflection and initial angular velocity). You can change the values either by dragging the sliders, or by typing the desired values from the keyboard (editing the corresponding number fields). When you type in new values, the corresponding field becomes yellow. In the last case you should press "Enter" key after editing. If the field becomes red, your input is inadmissible. Please make corrections and press "Enter" once more. The field with admissible new values should be gray, as initially. The model will accept the new values after you click at the button "Accept new values".
Principal goals of the lab:

Nonlinear Oscillations – a Virtual Lab 