Home▸Articles▸Physics & Mechanics

3D Elastic Pendulum: Understanding the Dynamics of Spring-Mass Systems in Three Dimensions

The 3D elastic pendulum simulates a spring-mass system under various forces, showcasing the principles of classical mechanics and energy conservation.

mysimulator teamUpdated June 2026≈ 4 min read▶ Open the simulation

What is a 3D Elastic Pendulum

A 3D elastic pendulum is a physical model where a mass (the ball) is attached to a spring, which itself is suspended within a three-dimensional space. This system is governed by the laws of classical mechanics and exhibits periodic motion under the influence of forces such as gravity, drag, and an oscillating wind force.

The dynamics of this system can be described using Hooke's law for the spring force, Newton's second law for the mass, and equations that account for energy conservation. The 3D nature adds complexity by allowing the ball to move in any direction within a three-dimensional space.

How It Works

The system is simulated using semi-implicit Euler integration, which updates the position and velocity of the mass at each time step. The forces acting on the mass include gravity pulling it downward, a damping force that opposes its motion due to air resistance, and an oscillating wind force that can either push or pull the ball depending on direction.

The spring force is determined by Hooke's law: F = -k(x - x0), where k is the spring constant, x is the current position of the mass relative to the equilibrium point (rest length), and x0 is the rest length of the spring. The total energy of the system consists of kinetic energy, potential energy due to gravity and the spring, and a small amount of energy lost to drag.

live demo · related simulation● LIVE

Why It Matters

The 3D elastic pendulum is not just an abstract model; it has practical applications in various fields. For instance, it can be used to study the behavior of atoms and molecules in a spring-like potential, or to understand the dynamics of mechanical systems such as suspension bridges under wind forces.

Moreover, this simulation helps students and researchers visualize complex physical phenomena and gain insights into energy conservation, force interactions, and the effects of damping on oscillatory motion.

Real-World Examples

In real-world applications, similar systems are used to model the behavior of molecules in a crystal lattice under external forces. The spring-mass system can also be applied to analyze the vibrations of mechanical structures like bridges and buildings subjected to wind or earthquake forces.

Additionally, this simulation is useful for understanding the dynamics of biological systems, such as the movement of proteins within cells, where the interactions between molecules can often be approximated by a spring-like potential.

Frequently asked questions

How does the semi-implicit Euler integration work in this simulation?

Semi-implicit Euler integration updates the position and velocity of the mass using a combination of current and future values. It first calculates the new velocity based on future forces, then uses that to find the new position, which is more accurate for stiff systems like those with strong spring forces.

What does the oscillating wind force do in this simulation?

The oscillating wind force simulates periodic external disturbances on the system. It can cause the mass to move back and forth, altering the frequency and amplitude of its oscillations depending on the strength and direction of the wind.

How does changing the spring constant affect the motion of the pendulum?

Increasing the spring constant stiffens the spring, making it more resistant to deformation. This results in a higher frequency of oscillation for the mass, as the restoring force acts more quickly on the mass.

What is the significance of energy conservation in this simulation?

Energy conservation ensures that the total mechanical energy (kinetic + potential) remains constant over time in an ideal system. In real-world applications, some energy is lost to friction and other dissipative forces, but understanding energy conservation helps predict and analyze the behavior of the system.

Try it live

Everything above runs in your browser — open 3D Elastic Pendulum: Spring-Mass System and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open 3D Elastic Pendulum: Spring-Mass System simulation

What did you find?

Add reproduction steps (optional)