Standing Wave String Simulator Back
Physics Simulator

Standing Wave String Simulator

Set string length, linear density, tension, and harmonic mode to draw a standing wave animation in real time. Visualize nodes and antinodes with frequency spectrum display.

Parameters
Boundary conditions
String Length L
m
Linear Density μ
kg/m
Tension T
N
Harmonic Order n
Playback Controls
t = 0.000 s
Saved Modes (up to 5)

String wave speed: $v = \sqrt{T/\mu}$

Fixed-Fixed Ends:

$$f_n = \frac{n}{2L}\sqrt{\frac{T}{\mu}}, \quad n = 1,2,3,\ldots$$

Fixed-Free Ends:

$$f_n = \frac{2n-1}{4L}\sqrt{\frac{T}{\mu}}, \quad n = 1,2,3,\ldots$$

Standing wave: $y(x,t) = 2A\sin(k_n x)\cos(\omega_n t)$ (fixed-fixed case)

Results
Wave Speed v [m/s]
Fundamental Frequency f₁ [Hz]
fₙ [Hz]
Wavelength λₙ [m]
Number of Nodes
Visualization
Observation Point x = m y(x,t) = (Click canvas to set / Double-click to clear)
Spec

Related Tools

Wave Basics Visualizer (Frequency, Wavelength, Wave Speed)
Visualize the basic relationship among wave frequency, wavelength, speed, and amplitude
Thin Lens Formula & Imaging Simulator
Calculate Object distance, Image distance, and Magnification using the thin lens formula
Traffic Flow Theory & LOS Calculator
Calculate the relationship between traffic flow, density, and speed using Greenshields and Greenberg models
AcousticImpedance・Reflection and transmission coefficientsSimulator
Calculate reflection and transmission coefficients for sound waves at a two-medium interface using acoustic impedance

What is a String Standing Wave?

🙋
What exactly is a "standing wave" on a string? I see the simulator shows a wave that just vibrates in place, not traveling.
🎓
Basically, it's a wave pattern that doesn't seem to move along the string. It happens when two identical waves travel in opposite directions and interfere. In practice, this is how musical instrument strings work. Try moving the "Harmonic Order n" slider above from 1 to 2. See how the pattern changes from one big hump to two? That's you changing the resonance mode.
🙋
Wait, really? So the points that don't move at all, the "nodes," are fixed? What determines where they are?
🎓
Yes, nodes are perfectly stationary points. Their positions are locked by the boundary conditions. For a string fixed at both ends, like in this simulator, nodes must be at the ends. The number of nodes is determined by the harmonic number 'n'. For instance, the fundamental (n=1) has nodes only at the ends. The 2nd harmonic (n=2) has a node in the middle. Try adjusting the "String Length L" slider and you'll see the distance between nodes changes proportionally.
🙋
So the frequency I hear from a guitar string depends on these patterns. How do the string's properties, like thickness and tightness, change the note?
🎓
Exactly! The frequency formula ties it all together. A thicker string (higher "linear density μ") has more mass and vibrates slower, giving a lower pitch. Increasing the "Tension T" (tightening the tuning peg) makes the wave travel faster and raises the pitch. Play with those two sliders while keeping 'n' and 'L' constant and you'll see the frequency readout and the wave's oscillation speed change in real time.

Physical Model & Key Equations

The wave speed on a string is not arbitrary; it's governed by the string's tension and its mass per unit length. This speed determines how fast a disturbance travels.

$$v = \sqrt{\frac{T}{\mu}}$$

$v$: Wave speed (m/s)
$T$: Tension in the string (N)
$\mu$: Linear density (kg/m). In the simulator, this is your "Linear Density" parameter.

For a string fixed at both ends, only specific frequencies will resonate to form a standing wave. These are called natural frequencies or harmonics. The condition is that the string length must be a multiple of half the wavelength.

$$f_n = \frac{n}{2L}\sqrt{\frac{T}{\mu}}, \quad n = 1,2,3,\ldots$$

$f_n$: Frequency of the nth harmonic (Hz)
$n$: Harmonic number (your "Harmonic Order" slider)
$L$: Length of the string (m)
The fundamental frequency ($n=1$) is the pitch you primarily hear. Higher 'n' gives integer multiples of this frequency.

Real-World Applications

Musical Instrument Design: This is the direct physics behind guitars, pianos, and violins. Luthiers use these principles to design string gauges (μ), scale lengths (L), and tension (T) to achieve desired pitch ranges, tonal quality, and playability. The harmonic content (different 'n' values) defines the instrument's timbre.

CAE Model Verification: In Finite Element Method (FEM) software, engineers perform "eigenvalue analysis" to find natural vibration modes of complex structures. The analytical solution for a vibrating string serves as a classic benchmark problem to verify that the FEM mesh and solver are converging to the correct answer.

Aeolian Vibration in Power Lines: Wind blowing past a transmission line can create vortices that excite standing wave vibrations (like harmonics on a string). This "aeolian vibration" can cause metal fatigue and failure. Engineers use this theory to design dampers that disrupt the resonant standing wave patterns.

Acoustic Cavity & MEMS Resonator Design: The same mathematical formalism applies to sound waves in air columns (like wind instruments) and to microscopic mechanical resonators in sensors and filters. Designing for a specific resonant frequency involves carefully controlling the equivalent of L, T, and μ for the system.

Common Misconceptions and Points to Note

When you start using this simulator, there are several points that often trip up beginners, especially those new to CAE. The first is the real-world sense of the "Linear Density" value. You might think entering "0.01" seems very small, but the unit is [kg/m]. For example, the linear density of a steel string (piano wire) with a diameter of about 0.9mm is approximately 0.005 kg/m. This means "0.01" corresponds to a rather thick string. Be careful, as parameters that deviate too far from reality can result in calculated frequencies outside the audible range and cause the animation to become extremely fast or slow.

The second point is the confusion between the "Harmonic Order n" and the "Number of Nodes". In the fixed-fixed end case, order n can also be thought of as the "number of antinodes", and the number of nodes becomes n+1. For n=2 (the 2nd harmonic), there are 3 nodes. On the other hand, for the fixed-free end case, n=1 has 1 node (only at the fixed end), and n=2 has 2 nodes. Please check the simulator's label display carefully to confirm this relationship.

The third point is that the simulator deals with an ideal "lossless, undamped" string. In real string vibration, energy is lost due to air resistance and internal material friction, causing the amplitude to gradually decay. Also, achieving a perfect "free end" is nearly impossible, as some impedance always exists. Keep in mind that this tool is an "ideal model" for understanding the essence of the phenomenon.