{source}

<?php 
require_once JPATH_SITE.'/TTcustom/TT_contentparser.php';
$parameters = array("topicname" => "02_newtonianmechanics_8oscillations",
 "modelname" => "ejss_model_PICUP_Plane_Rigid_Pendulum_Python_frem");

echo generateSimHTML($parameters, "EJSS");
?>
{/source}

background, computational approach, and the exercises designed for students. This resource, developed by K. Roos with Easy JavaScript Simulation by Fremont Teng and Loo Kang Wee, is designed to help first-year and beyond students understand the dynamics of a plane rigid pendulum through computational modeling using the Euler-Cromer numerical scheme. The exercises guide students to explore the accuracy of their models, compare them to analytical approximations, and investigate more complex phenomena like damping and chaotic behavior.

Main Themes and Important Ideas/Facts:

  1. Computational Modeling of a Rigid Pendulum: The core of this resource is the use of computational modeling to study the behavior of a rigid pendulum. Unlike a simple pendulum (mass on a massless string), the rigid pendulum allows for the study of large angular displacements without physical constraints. The resource emphasizes building a computational model using the Euler-Cromer algorithm.
  • Quote: "In this set of exercises the student builds a computational model of a simple plane rigid pendulum using the Euler-Cromer numerical scheme."
  1. Euler-Cromer Algorithm: The resource specifically employs the Euler-Cromer method, which is presented as a stable algorithm for oscillatory systems. The instructor guide even suggests an optional "Exercise 0" to highlight the instability of the simpler Euler method, providing a valuable lesson in numerical methods.
  • Quote: "The stable Euler Cromer method is employed; however, the instructor could have the students start out with an “Exercise 0” that asks students to use the simple Euler method to model the pendulum. The Euler algorithm is unstable for oscillatory systems (total energy grows every time step), and this exercise could provide a valuable lesson in the control of artificial behavior in computational models, and the importance of using stable algorithms."
  1. Learning Objectives: The exercises are structured to achieve specific learning objectives, including:
  • Building a computational model using the Euler-Cromer algorithm.
  • Generating graphs of angular displacement and velocity over time.
  • Assessing the accuracy of the computational model.
  • Identifying the limitations of the small angle approximation.
  • Producing and interpreting phase space plots.
  • Generating chaotic phase space trajectories by varying parameters.
  • Quote: "Students who complete this set of exercises will be able to build a computational model of a simple rigid pendulum using the Euler-Cromer algorithm ( Exercise 1 ); to produce graphs of the angular displacement and angular velocity of the pendulum as a function of time from the results of their computational model ( Exercises 1-5 ); to assess the accuracy of the computational results of their model ( Exercises 1 ); to identify the limitations of the small angle approximation for the plane pendulum ( Exercises 2 ) to produce phase space plots for various system parameters ( Exercises 3 ); and to produce chaotic phase space trajectories by varying model parameters ( Exercise 4 and 5 );"
  1. Comparison with Small Angle Approximation: A key exercise involves comparing the computational results with the analytical solution derived using the small angle approximation. This highlights the limitations of the approximation for larger angular displacements.
  • Quote: "The student should be made aware of the analytic solution of the (undamped and unforced) rigid pendulum accessible via the small angle approximation. The second exercise in this set has the students compare this small angle solution to their computational one."
  • Quote (from Exercise 2 Solution): "The small angle approximation underestimates the period of oscillation, and obviously isn’t a good approximation for large angles."
  1. Phase Space Analysis: The resource introduces the concept of phase space plots (angular velocity vs. angular displacement) as a tool for analyzing the system's dynamics, particularly for periodic systems and for visualizing the effects of damping and driving forces.
  • Quote: "A very useful plot for analyzing periodic systems is known as a phase space plot, and is simply a graph of velocity vs. position. The resulting curve is known as a phase space trajectory. In the case of the plane rigid pendulum, the phase space trajectory is found by graphing angular velocity vs. angular displacement."
  1. Damping and Driving Forces: The exercises progressively introduce damping and driving torques to the pendulum model, allowing students to explore their effects on the pendulum's motion and to observe phenomena like damped oscillations and resonance (though not explicitly named).
  • Quote: "Adding the damping and driving terms in exercises 4 and 5, and guiding the students to explore the behavior for different parameter values, serves as a basic introduction to nonlinear dynamics."
  1. Chaotic Behavior: A significant aspect of the resource is the exploration of chaotic trajectories in the damped, driven rigid pendulum. By varying the driving torque amplitude, students can observe the transition from predictable oscillations to seemingly unpredictable, non-repeating behavior characterized by complex phase space plots.
  • Quote: "The rigid pendulum is a type of nonlinear system, and therefore the dynamics actually become chaotic for certain physical parameters and initial conditions. To best observe the chaotic behavior, restrict the values of the angular displacement to the range - π to + π..."
  • Quote (from Exercise 5 Solution): "But, with higher driving torques, the system shows an apparently unpredictable non-repeating oscillatory behavior, with the corresponding phase space characterized by many orbits that can appear, as the case of τd = 5 Nm , to be completely random. This behavior is chaotic ."
  1. Numerical Accuracy and Time Step (Δt): Exercise 1 emphasizes the importance of selecting an appropriately small time step (Δt) for accurate computational results, especially when no analytical solution is available for direct comparison. Students are expected to describe their procedure for determining an acceptable value of Δt, often by looking for convergence in the simulation results as Δt is reduced.
  • Quote: "so you must carefully determine a value of Δ t Δ t that produces an accurate approximation without the benefit of making a comparison. Describe in detail the procedure you used in arriving at an acceptably small value of Δ t Δ t..."
  • Quote (from Exercise 1 Solution): "With a properly working model, and no exact solution with which to compare, the student should look for some kind of convergence behavior in the computational solution as Δ t Δ t is systematically made smaller."

Python Implementation:

The resource includes a Python script (Plane_Rigid_Pendulum_Python.py) that implements the Euler-Cromer algorithm for the damped, driven rigid pendulum. The code includes parameters for gravity, mass, length, damping strength, driving frequency, and driving torque, as well as the time step and total number of iterations. It calculates and plots the time evolution of angular displacement and compares it with the small angle approximation. The code also includes a constraint to keep the angular displacement within the range of -π to +π for better visualization of chaotic behavior.

Educational Advantages:

The computational approach offers several educational advantages:

  • Allows students to study a nonlinear, potentially chaotic system with relative computational ease.
  • Provides a hands-on experience in building and analyzing physical models.
  • Facilitates exploration of system dynamics by varying parameters.
  • Visually demonstrates the limitations of approximations.
  • Introduces fundamental concepts in numerical methods and nonlinear dynamics.

Target Audience:

The resource is primarily aimed at first-year university students and beyond who are studying mechanics and oscillations, and who have some basic programming knowledge or are learning computational modeling.

In Conclusion:

The PICUP Plane Rigid Pendulum JavaScript Simulation Applet and its associated exercises provide a comprehensive and engaging way for students to learn about the dynamics of a rigid pendulum. By combining computational modeling with theoretical concepts and visualization techniques like phase space plots, this resource allows students to develop a deeper understanding of linear and nonlinear oscillations, the limitations of analytical approximations, and the emergence of chaotic behavior in physical systems. The inclusion of a Python implementation further enhances its value for students learning computational physics.

 

 

Study Guide: Computational Modeling of a Rigid Pendulum

Key Concepts

  • Rigid Pendulum: A pendulum where the mass distribution and shape are fixed, unlike a simple pendulum which approximates a point mass on a massless string.
  • Euler-Cromer Algorithm: A numerical method for solving differential equations, often used in physics simulations, known for its stability in oscillatory systems.
  • Computational Model: A simulation of a physical system created using a computer program, allowing for the exploration of its behavior under different conditions.
  • Small Angle Approximation: A simplification of the pendulum equation of motion that is valid only for small angular displacements (sin θ ≈ θ). This leads to an analytical solution for simple harmonic motion.
  • Phase Space: A graphical representation of a dynamical system where the axes represent the system's state variables (e.g., angular displacement and angular velocity for a pendulum).
  • Phase Space Trajectory: The path traced in phase space as the system evolves over time. Closed loops often indicate periodic motion.
  • Damping: A force that opposes the motion of an oscillating system, causing its amplitude to decrease over time (e.g., air resistance, friction).
  • Driving Torque: an external torque applied to the system, often periodic, that can influence its oscillations.
  • Nonlinear Dynamics: The study of systems where the equations of motion are nonlinear, often exhibiting complex behaviors like chaos.
  • Chaos: A state of a deterministic system characterized by extreme sensitivity to initial conditions, leading to seemingly random and unpredictable behavior.
  • Angular Displacement (θ): The angle of the pendulum relative to its equilibrium position.
  • Angular Velocity (θ̇): The rate of change of the angular displacement.
  • Angular Acceleration (θ̈): The rate of change of the angular velocity, determined by the net torque and moment of inertia.
  • Torque (τ): A rotational force that tends to cause rotation.
  • Moment of Inertia (I): A measure of an object's resistance to changes in its rotation.
  • Time Step (Δt): The discrete intervals of time used in a numerical simulation. The size of the time step affects the accuracy and stability of the computational model.

Quiz

  1. Explain why the Euler-Cromer algorithm is preferred over the simple Euler method for modeling oscillatory systems like a pendulum.
  2. Describe the limitations of the small angle approximation for a pendulum and under what conditions it provides a reasonably accurate analytical solution.
  3. What information can be gained by examining a phase space plot of a pendulum's motion, specifically the relationship between angular displacement and angular velocity?
  4. How does the introduction of a damping torque affect the time-dependent behavior and the phase space trajectory of a rigid pendulum?
  5. What is a driving torque, and how does adding a sinusoidal driving torque influence the motion of a damped rigid pendulum?
  6. Define chaotic behavior in the context of a dynamical system like the driven rigid pendulum. What are some characteristic features of chaotic trajectories in phase space?
  7. Explain the physical significance of the sign convention used for torques acting on the rigid pendulum.
  8. What is the moment of inertia of the uniform rigid bar about the pivot point P, and how does it relate to the bar's mass and length?
  9. Describe the process a student should undertake to determine an acceptably small time step (Δt) when building a computational model without an exact analytical solution for comparison.
  10. How does restricting the angular displacement to the range -π to +π in the computational model of a driven pendulum aid in the analysis of chaotic behavior?

Answer Key

  1. The Euler-Cromer algorithm is more stable for oscillatory systems because it uses the updated velocity to calculate the new position, which helps to conserve energy (or at least prevents artificial growth of energy) over time. The simple Euler method tends to be unstable for oscillations, leading to a continuous increase in the system's total energy.
  2. The small angle approximation (sin θ ≈ θ) is only valid when the angular displacement θ is small (typically less than about 15-20 degrees or 0.26-0.35 radians). Beyond this range, the approximation becomes less accurate, leading to discrepancies in the predicted period and amplitude of oscillation compared to the actual behavior of the pendulum.
  3. A phase space plot (angular velocity vs. angular displacement) reveals the nature of the pendulum's motion. For example, a closed loop indicates periodic motion, the direction of the loop shows the evolution in time, and the shape of the loop can provide insights into the energy and stability of the oscillations.
  4. The introduction of a damping torque causes the amplitude of the pendulum's oscillations to decrease over time, eventually leading to a stop at the equilibrium position. In phase space, this is represented by a trajectory that spirals inward towards the origin (zero angular displacement and zero angular velocity), indicating the dissipation of energy.
  5. A driving torque is an external rotational force applied to the pendulum, often varying periodically (sinusoidally in this case). It can add energy to the system, counteracting damping, and can lead to a variety of behaviors depending on its amplitude and frequency, including resonance and chaos.
  6. Chaotic behavior in a deterministic system is characterized by a high sensitivity to initial conditions, meaning that even tiny differences in the starting state can lead to drastically different trajectories over time. In phase space, chaotic trajectories often appear complex, unpredictable, and do not repeat, filling a region of space without forming closed loops.
  7. The sign convention for torques is crucial for correctly applying Newton's second law for rotation (∑τ = Iθ̈). A positive torque produces a counterclockwise angular acceleration, while a negative torque produces a clockwise angular acceleration. This ensures that the mathematical model accurately reflects the physical forces acting on the pendulum.
  8. The moment of inertia of the uniform rigid bar about the pivot point P (at one end) is given by I = (1/3)mL². The source incorrectly states I = m(L/2)², which would be the moment of inertia of a point mass m located at the center of mass. For a uniform rod pivoted at one end, the formula is different, affecting the equation of motion.
  9. To determine an acceptably small time step (Δt), a student should start with a relatively large Δt and run the simulation. Then, they should systematically decrease Δt and observe how the results (e.g., plots of angular displacement vs. time) change. When further reductions in Δt no longer produce significant changes in the simulation's output (convergence), the current Δt can be considered acceptably small for accuracy.
  10. Restricting the angular displacement to the range -π to +π helps in visualizing and analyzing the long-term behavior of the driven pendulum, particularly when exploring chaos. Since angular displacements differing by 2π correspond to the same physical position, this restriction prevents the phase space trajectory from becoming overly cluttered and allows for a clearer observation of the complex, non-repeating patterns characteristic of chaos within a defined range.

Essay Format Questions

  1. Discuss the importance of computational modeling in studying physical systems like the rigid pendulum, particularly when analytical solutions are limited or non-existent. Highlight the role of numerical methods like the Euler-Cromer algorithm in obtaining approximate solutions and exploring system dynamics.
  2. Compare and contrast the behavior of an undamped, unforced rigid pendulum with the analytical solution obtained using the small angle approximation. Analyze the conditions under which the approximation is valid and explain the deviations observed for larger angular displacements.
  3. Explain the concept of phase space and its utility in analyzing the dynamics of the rigid pendulum. Describe how damping and driving torques are manifested in the phase space trajectories and what information these representations provide about the system's energy and periodicity.
  4. Investigate the effects of damping on the rigid pendulum's oscillations. Discuss how varying the damping strength influences both the time-dependent behavior and the phase space trajectories. Can the pendulum be overdamped to the point where oscillations cease, and what physical parameters determine this critical damping?
  5. Explore the complex dynamics of a damped, driven rigid pendulum, focusing on the phenomenon of chaos. Describe how varying the driving torque amplitude can lead to transitions from predictable periodic motion to unpredictable chaotic behavior, and discuss the characteristics of chaotic trajectories in phase space.

Sample Learning Goals

[text]

For Teachers

Instructions

Combo Box and Functions

Toggling the Combo Box will give you their respective functions.
 


 
Pendulum and Others will give you their fieldboxes that are editable.
 
Toggling the bottom options will toggle their visibility.
 
(Show Solution)


(Hide Solution)
 
Toggling the Solution will toggle the visibility of the orange curve.
 
(Position Time Selected)


(Velocity Time Selected)


(Phase Space Selected)
 
Selecting the rest of the options will toggle the visibility of the above graphs.
 

Toggling Full Screen

Double clicking anywhere in the panel to toggle full screen.
 

Play/Pause, Initialise and Reset Buttons

Plays/Pauses, initialises and resets the simulation respectively.
 
Do take a look at the spreadsheet from this link as well:
 

Research

[text]

Video

[text]

 Version:

  1. https://www.compadre.org/PICUP/exercises/exercise.cfm?I=139&A=RigPend 
  2. http://weelookang.blogspot.com/2018/06/plane-rigid-pendulum-javascript.html 

Other Resources

[text]

# What is the purpose of the PICUP Plane Rigid Pendulum JavaScript Simulation Applet?

The primary purpose of this simulation is to allow students to build and explore a computational model of a plane rigid pendulum. Through guided exercises, students can investigate the pendulum's motion, the accuracy of computational models, the limitations of the small angle approximation, and the emergence of chaotic behavior when damping and driving forces are introduced.

# How does the simulation utilize the Euler-Cromer algorithm?

The simulation guides students to build a computational model of the pendulum using the Euler-Cromer numerical scheme. This method is a stable algorithm for oscillatory systems and is used to approximate the angular displacement and angular velocity of the pendulum over time by iteratively updating these values based on the calculated angular acceleration.

# What are the learning objectives for students using this simulation?

Upon completing the exercises associated with this simulation, students will be able to: build a computational model of a rigid pendulum using the Euler-Cromer algorithm; produce graphs of angular displacement and velocity as a function of time; assess the accuracy of their computational model; identify the limitations of the small angle approximation; produce phase space plots; and observe chaotic trajectories by varying system parameters.

# Why is a rigid pendulum used in this simulation instead of a simple pendulum (mass on a string)?

A rigid pendulum, modeled as a uniform rigid bar, allows for the study of larger angular displacements (greater than π/2) without the concern of the mass's position relative to the support becoming ill-defined. Additionally, the rigid pendulum provides a more direct path to exploring nonlinear dynamics and chaotic behavior.

# What is the significance of comparing the computational model with the small angle approximation?

Comparing the computational results with the analytical solution obtained via the small angle approximation helps students understand the limitations of this approximation. They can observe that for small initial angles, the approximation is reasonably accurate, but for larger angles, the approximation deviates significantly from the computational solution, particularly in predicting the period of oscillation.

# How is phase space analysis used in the context of this simulation?

Phase space plots (angular velocity vs. angular displacement) are introduced as a valuable tool for analyzing the periodic and more complex behaviors of the pendulum. Students are asked to produce these plots for different system parameters (e.g., damping, driving force) and initial conditions to visualize the system's dynamics and identify characteristics such as closed orbits for periodic motion and complex, non-repeating trajectories indicative of chaos.

# How do damping and driving forces affect the pendulum's behavior, as explored in the simulation?

The simulation allows students to add damping and driving torques to their model. By varying the damping strength, they can observe how oscillations decay and eventually cease. Introducing a sinusoidal driving torque can lead to resonance and, more interestingly, to chaotic behavior for certain parameter values, where the pendulum's motion becomes unpredictable and non-repeating.

# What evidence of chaotic behavior can be observed using this simulation?

By exploring the damped, driven pendulum with varying driving torque amplitudes and plotting the phase space trajectories over a large number of time steps, students can observe behavior characteristic of chaos. This includes seemingly random, non-repeating patterns in the phase space plots, contrasting with the well-defined orbits seen in periodic or quasi-periodic motion. The simulation provides a hands-on introduction to the concept that deterministic nonlinear systems can exhibit unpredictable behavior.